Fix source code clean up in Jenkins 00/2000/1
authorchengli3 <cheng1.li@intel.com>
Tue, 19 Nov 2019 05:16:47 +0000 (13:16 +0800)
committerchengli3 <cheng1.li@intel.com>
Tue, 19 Nov 2019 05:17:20 +0000 (13:17 +0800)
Change-Id: I900d8a108896334aca9a48ee8987c918463efe26
Signed-off-by: chengli3 <cheng1.li@intel.com>
ci/README.md
ci/jjb/akraino-icn-templates.yaml

index d95a736..3536070 100644 (file)
@@ -55,3 +55,6 @@ user=admin
 password=admin
 url=http://localhost:8080
 ```
+
+4. There is [a bug](https://issues.jenkins-ci.org/browse/JENKINS-28466) of jenkins
+which makes some environemtn variables not usable. To fix the bug, we need 'Manage Jenkins' > 'Configure System' > 'click save without any changes'.
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