Fix source code clean up in Jenkins
[icn.git] / ci / jjb / akraino-icn-templates.yaml
index 3bab6ac..f15154e 100644 (file)
           - shell/vagrant-verify.sh
 
     publishers:
+      - postbuildscript:
+          builders:
+            - role: BOTH
+              build-on:
+                - ABORTED
+                - FAILURE
+                - NOT_BUILT
+                - SUCCESS
+                - UNSTABLE
+              build-steps:
+                # all files should be owned by jenkins, for cleanup
+                - shell: 'sudo chown jenkins -R .'
       - icn-infra-publish
 #      - email:
 #          recipients: icn.jenkins@intel.com
           - shell/bm-verify.sh
 
     publishers:
+      - postbuildscript:
+          builders:
+            - role: BOTH
+              build-on:
+                - ABORTED
+                - FAILURE
+                - NOT_BUILT
+                - SUCCESS
+                - UNSTABLE
+              build-steps:
+                # all files should be owned by jenkins, for cleanup
+                - shell: 'sudo chown jenkins -R .'
       - icn-infra-publish
 #      - email:
 #          recipients: icn.jenkins@intel.com