diff options
author | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2018-01-04 16:46:13 -0500 |
---|---|---|
committer | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2018-01-04 17:52:34 -0500 |
commit | 6fecb3948338c57cdd72c9c37491f4aabacd4f26 (patch) | |
tree | 836b693208fd2a1f0d488b75a3040ccecd2bb823 /ci | |
parent | 11f285bb542624446bfcf033532d6ca286cc2cb5 (diff) |
Change owner of build output
In order to let jenkins to wiping out workspace, the owner of
the built artifacts should be jenkins:jenkins
Change-Id: If0a6f367460ee50fe947e75a800e9e0044f3626e
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/kolla-build.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/kolla-build.sh b/ci/kolla-build.sh index 44b1c038..b3b9fca3 100755 --- a/ci/kolla-build.sh +++ b/ci/kolla-build.sh @@ -129,15 +129,16 @@ function build_kolla_image_in_daisy_vm() ssh $SSH_PARAS $DAISY_IP "${REMOTE_SPACE}/ci/kolla-build-vm.sh $VM_PARAMS" rc=$? if [ $rc -ne 0 ]; then - echo "daisy install failed" + echo "image build failed" exit 1 else - echo "daisy install successfully" + echo "image build successfully" fi rm -rf $BUILD_OUTPUT_DIR - mkdir -p $BUILD_OUTPUT_DIR scp -r root@$DAISY_IP:$BUILD_OUTPUT_DIR $WORK_DIR + realuser=$(who am i | awk '{print $1}') + chown -R $realuser:$realuser $WORK_DIR } trap "error_trap" EXIT SIGTERM |