From e67da41b552179482f39a413b61ef0beff8ab12a Mon Sep 17 00:00:00 2001 From: chengli3 Date: Tue, 19 Nov 2019 13:16:47 +0800 Subject: [PATCH] Fix source code clean up in Jenkins Change-Id: I900d8a108896334aca9a48ee8987c918463efe26 Signed-off-by: chengli3 --- ci/README.md | 3 +++ ci/jjb/akraino-icn-templates.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/ci/README.md b/ci/README.md index d95a736..3536070 100644 --- a/ci/README.md +++ b/ci/README.md @@ -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'. diff --git a/ci/jjb/akraino-icn-templates.yaml b/ci/jjb/akraino-icn-templates.yaml index 3bab6ac..f15154e 100644 --- a/ci/jjb/akraino-icn-templates.yaml +++ b/ci/jjb/akraino-icn-templates.yaml @@ -58,6 +58,18 @@ - 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 @@ -121,6 +133,18 @@ - 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 -- 2.16.6