Allow requesting a specific arvados commit hash for image buildind. Refs #21461
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 21 Feb 2024 20:26:40 +0000 (17:26 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 21 Feb 2024 20:26:40 +0000 (17:26 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

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