Merge "iec: compass: Fix log permissions, curl redirect"
authorEric Ball <eball@linuxfoundation.org>
Tue, 25 Feb 2020 15:23:38 +0000 (15:23 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Tue, 25 Feb 2020 15:23:38 +0000 (15:23 +0000)
jjb/iec/iec-compass-build.sh
jjb/iec/iec-compass-deploy.sh
jjb/iec/iec-compass-destroy.sh
jjb/iec/iec-fdn-install.sh

index b403230..e604dfc 100755 (executable)
@@ -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
index 9db4c0b..443c115 100755 (executable)
@@ -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
index fbd448b..3c1993d 100755 (executable)
@@ -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
index 40852df..e1a74fa 100755 (executable)
@@ -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