summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2017-01-31 13:03:20 +0530
committerNigel Babu <nigelb@redhat.com>2017-02-02 11:44:32 +0530
commit3b77dbdac288bf21f802be41019e2cd4d4dc3e3c (patch)
tree5bc2eff02329d91abe4adc01307a03dcd38e2d53
parentb3e073d890a5b651f6fea15f79fb1c88bae9e78c (diff)
Set ownership of the rpm folders post-job
Change-Id: I713ac936e646ff04e8385bbe1fb442708e53cdf8 Signed-off-by: Nigel Babu <nigelb@redhat.com>
-rw-r--r--build-gluster-org/jobs/glusterfs-devrpms.yml6
-rw-r--r--build-gluster-org/jobs/glusterfs-rpms.yml6
-rw-r--r--build-gluster-org/jobs/strfmt_errors.yml6
3 files changed, 18 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/glusterfs-devrpms.yml b/build-gluster-org/jobs/glusterfs-devrpms.yml
index cb78d63..66c83ac 100644
--- a/build-gluster-org/jobs/glusterfs-devrpms.yml
+++ b/build-gluster-org/jobs/glusterfs-devrpms.yml
@@ -55,6 +55,12 @@
publishers:
- rpm
+ - post-tasks:
+ - matches:
+ # "Building remotely" should always be in the build console output
+ - log-text: Building remotely
+ script: |
+ sudo chown -R jenkins:jenkins ${{WORKSPACE}}/RPMS
builders:
- shell: !include-raw: ../scripts/glusterfs-devrpms.sh
diff --git a/build-gluster-org/jobs/glusterfs-rpms.yml b/build-gluster-org/jobs/glusterfs-rpms.yml
index 7a1022a..90d5006 100644
--- a/build-gluster-org/jobs/glusterfs-rpms.yml
+++ b/build-gluster-org/jobs/glusterfs-rpms.yml
@@ -46,6 +46,12 @@
publishers:
- rpm
+ - post-tasks:
+ - matches:
+ # "Building remotely" should always be in the build console output
+ - log-text: Building remotely
+ script: |
+ sudo chown -R jenkins:jenkins ${{WORKSPACE}}/RPMS
builders:
- shell: !include-raw: ../scripts/glusterfs-rpms.sh
diff --git a/build-gluster-org/jobs/strfmt_errors.yml b/build-gluster-org/jobs/strfmt_errors.yml
index bef35b6..527e9c0 100644
--- a/build-gluster-org/jobs/strfmt_errors.yml
+++ b/build-gluster-org/jobs/strfmt_errors.yml
@@ -43,6 +43,12 @@
publishers:
- strfmt-build-log
+ - post-tasks:
+ - matches:
+ # "Building remotely" should always be in the build console output
+ - log-text: Building remotely
+ script: |
+ sudo chown -R jenkins:jenkins ${WORKSPACE}/RPMS
builders:
- shell: !include-raw: ../scripts/strfmt_errors.sh