summaryrefslogtreecommitdiffstats
path: root/jjb/xci/xci-daily-jobs.yml
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-03-22 21:25:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-22 21:25:08 +0000
commit34e12d9aa0e7cc9baeba6de454fbce00ae627aea (patch)
treef852fe20673630eed103b3a07a1dbca1aea64efe /jjb/xci/xci-daily-jobs.yml
parent9bfda5e8f2d31270287115773fdf2c98dbbaba87 (diff)
parent139d2fb3d8aebafbd7194b3465f92c415971db39 (diff)
Merge "jjb: xci: Fix permissions in workspace before removing it"
Diffstat (limited to 'jjb/xci/xci-daily-jobs.yml')
-rw-r--r--jjb/xci/xci-daily-jobs.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/jjb/xci/xci-daily-jobs.yml b/jjb/xci/xci-daily-jobs.yml
index 65da308ae..ce2e4f382 100644
--- a/jjb/xci/xci-daily-jobs.yml
+++ b/jjb/xci/xci-daily-jobs.yml
@@ -96,6 +96,9 @@
triggers:
- '{auto-trigger-name}'
+ wrappers:
+ - xci-fix-perms-workspace
+
builders:
- description-setter:
description: "Built on $NODE_NAME"
@@ -181,10 +184,25 @@
name: SLAVE_LABEL
default: '{slave-label}'
+ wrappers:
+ - xci-fix-perms-workspace
+
builders:
- description-setter:
description: "Built on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
- 'xci-{phase}-builder'
+
+#---------------------------
+# wrapper macros
+#---------------------------
+- wrapper:
+ name: xci-fix-perms-workspace
+ wrappers:
+ - pre-scm-buildstep:
+ - shell: |
+ #!/bin/bash
+ sudo -R chown $USER $WORKSPACE || exit 1
+
#---------------------------
# builder macros
#---------------------------