Preseed the run-tests.sh cache to make test runs faster (bugfix).
authorWard Vandewege <ward@curii.com>
Fri, 7 May 2021 15:56:09 +0000 (11:56 -0400)
committerWard Vandewege <ward@curii.com>
Fri, 7 May 2021 15:56:23 +0000 (11:56 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

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

index 949d4a3055235d2cc301465ffcbb36baadf84d3b..4c29498f8562927a4c83fc59e45eec42b8305445 100755 (executable)
@@ -31,5 +31,6 @@ mkdir /home/jenkins/tmp
 # Preseed the run-tests.sh cache. This is a little bit silly (a lot of this
 # stuff was already done by the call to `./cmd/arvados-server install -type
 # test` above, but they do not share a cache.
-sudo ./build/run-tests.sh WORKSPACE=/usr/src/arvados --temp /home/jenkins/tmp --only install
 sudo chown jenkins:jenkins /home/jenkins -R
+sudo chown jenkins:jenkins /usr/src/arvados -R
+sudo -u jenkins ./build/run-tests.sh WORKSPACE=/usr/src/arvados --temp /home/jenkins/tmp --only install