+ echo "Clone compass4nfv"
+ git clone -b CompassinAkrainoIEC https://github.com/iecedge/compass4nfv.git
+
+ cd compass4nfv
+
+ COMPASS_WORK_DIR=$WORKSPACE/../compass-work
+
+ mkdir -p $COMPASS_WORK_DIR
+ ln -snf $COMPASS_WORK_DIR work
+
+ ./build.sh
+}
+
+check_env
+
+# Build compass
+build_compass
+
+# Fix permissions so we can archive log files before pushing to Nexus
+sudo chown $(id -u):$(id -g) -R "${WORKSPACE}"