Allow requesting a specific arvados commit hash for image buildind. Refs #21461
[arvados-dev.git] / jenkins / packer-images / jenkins-image-arvados-tests.sh
index 5736ed1fbc5d75b6538ac42df35908ea2c36c11d..1dd0f36cae172d2fd04915672111ceedd9152a72 100755 (executable)
@@ -17,6 +17,11 @@ sudo usermod -a -G docker jenkins
 cd /usr/src
 sudo git clone arvados.git
 
+if [[ "$GIT_HASH" != "" ]]; then
+  echo "GIT_HASH is set to $GIT_HASH, checking out that revision..."
+  sudo git checkout $GIT_HASH
+fi
+
 # Install the correct version of Go
 GO_VERSION=`grep 'const goversion =' /usr/src/arvados/lib/install/deps.go |awk -F'"' '{print $2}'`
 cd /usr/src