Add compass task for iec CI/CD in community
[ci-management.git] / jjb / iec / iec-compass-build.sh
diff --git a/jjb/iec/iec-compass-build.sh b/jjb/iec/iec-compass-build.sh
new file mode 100755 (executable)
index 0000000..64cea9e
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+
+echo "begin build compass"
+git clone https://github.com/opnfv/compass4nfv.git
+
+cd compass4nfv
+
+COMPASS_WORK_DIR=$WORKSPACE/../compass-work
+mkdir -p $COMPASS_WORK_DIR
+ln -s $COMPASS_WORK_DIR work
+
+sudo docker rm -f `docker ps | grep compass | cut -f1 -d' '` || true
+
+curl -s http://people.linaro.org/~yibo.cai/compass/compass4nfv-arm64-fixup.sh | bash || true
+
+./build.sh
+
+exit 0