From: Eric Ball Date: Tue, 25 Feb 2020 15:23:38 +0000 (+0000) Subject: Merge "iec: compass: Fix log permissions, curl redirect" X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=e434136315b44d1c376ad81d5e97950e69ad22b3;hp=dd6df9e26b1af9f6f2a66742d6b78acdb50451f7 Merge "iec: compass: Fix log permissions, curl redirect" --- diff --git a/jjb/iec/iec-compass-build.sh b/jjb/iec/iec-compass-build.sh index b403230..e604dfc 100755 --- a/jjb/iec/iec-compass-build.sh +++ b/jjb/iec/iec-compass-build.sh @@ -36,8 +36,11 @@ ln -s $COMPASS_WORK_DIR work sudo docker rm -f `sudo docker ps | grep compass | cut -f1 -d' '` || true -curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true +curl -sL http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true ./build.sh +# Fix permissions so we can archive log files before pushing to Nexus +sudo chown $(id -u):$(id -g) -R "${WORKSPACE}" + exit 0 diff --git a/jjb/iec/iec-compass-deploy.sh b/jjb/iec/iec-compass-deploy.sh index 9db4c0b..443c115 100755 --- a/jjb/iec/iec-compass-deploy.sh +++ b/jjb/iec/iec-compass-deploy.sh @@ -46,4 +46,6 @@ echo "Compass Deploy successful" rm -rf "$COMPASS_WORK_DIR" rm -rf work +# Fix permissions so we can archive log files before pushing to Nexus +sudo chown $(id -u):$(id -g) -R "${WORKSPACE}" exit 0 diff --git a/jjb/iec/iec-compass-destroy.sh b/jjb/iec/iec-compass-destroy.sh index fbd448b..3c1993d 100755 --- a/jjb/iec/iec-compass-destroy.sh +++ b/jjb/iec/iec-compass-destroy.sh @@ -1,5 +1,7 @@ #!/bin/bash -set -e + +# Do not exit this script if one of the cleanup steps fails +set +e rm -rf compass4nfv sudo virsh destroy host1 diff --git a/jjb/iec/iec-fdn-install.sh b/jjb/iec/iec-fdn-install.sh index 40852df..e1a74fa 100755 --- a/jjb/iec/iec-fdn-install.sh +++ b/jjb/iec/iec-fdn-install.sh @@ -18,5 +18,7 @@ HOST_USER=root export HOST_USER ./startup.sh +# Fix permissions so we can archive log files before pushing to Nexus +sudo chown $(id -u):$(id -g) -R "${WORKSPACE}" exit 0