Bug-AGL: SPEC-979, SPEC-1379
Change-Id: I2d5032f75672978c7dfd6b43159cd170efd8fb38
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
# dump where we are in jenkins log :)
git log -n 1
-make build
-make export
+# add Jenkins BUILD_ID in image version
+FULLVER=$(cat VERSION)-${BUILD_ID}
+
+# override VERSION variable when invoking make to build and export docker image
+make VERSION=$FULLVER build
+make VERSION=$FULLVER export
ls
mkdir -p ../container
mv docker_agl_worker*.tar.xz ../container/
+
+# workaround due to SPEC-979
ln -s $(basename ../container/docker_agl_worker*.tar.xz) ../container/docker_agl_worker-latest.tar.xz
ls ../container