Make prescm step workspace permission fix a macro available to all 83/32183/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 29 Mar 2017 09:19:01 +0000 (11:19 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 29 Mar 2017 09:19:01 +0000 (11:19 +0200)
bifrost-verify jobs have been using this without issues and it is
needed for many other jobs in order to avoid unnecessary failures.

This change makes workspace permission fix prescm step a macro.

Change-Id: Ib5678dbf21c17ce640a600d2a06ebed9674663fa
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/global/releng-macros.yml
jjb/xci/bifrost-verify-jobs.yml

index 6fdb4ca..ced335c 100644 (file)
             users:
                 - 'd42411ac011ad6f3dd2e1fa34eaa5d87f910eb2e'
 
+- wrapper:
+    name: fix-workspace-permissions
+    wrappers:
+        - pre-scm-buildstep:
+          - shell: |
+                #!/bin/bash
+                sudo chown -R $USER $WORKSPACE || exit 1
+
 - builder:
     name: build-html-and-pdf-docs-output
     builders:
index 2fa99b2..b93456e 100644 (file)
         - bifrost-build
 
     wrappers:
-        - bifrost-fix-perms-workspace
+        - fix-workspace-permissions
 
     publishers:
         - email:
                     pattern: 'prototypes/bifrost/**'
             readable-message: true
 
-#---------------------------
-# wrapper macros
-#---------------------------
-- wrapper:
-    name: bifrost-fix-perms-workspace
-    wrappers:
-        - pre-scm-buildstep:
-          - shell: |
-                #!/bin/bash
-                sudo chown -R $USER $WORKSPACE || exit 1
-
 #---------------------------
 # builder macros
 #---------------------------