Fixes in git checkout call. Refs #21461
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 21 Feb 2024 22:53:17 +0000 (19:53 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 21 Feb 2024 22:53:17 +0000 (19:53 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

jenkins/packer-images/jenkins-image-arvados-tests.sh

index 1dd0f36cae172d2fd04915672111ceedd9152a72..6055c22b0c60d09f1e6ec818a790979e471cca7a 100755 (executable)
@@ -19,7 +19,7 @@ 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
+  (cd arvados && sudo git checkout $GIT_HASH)
 fi
 
 # Install the correct version of Go