Skip to content

Commit b34a81b

Browse files
authored
Merge pull request #2880 from stan-dev/ci/parallel-distribution-delete-dir
Delete Jenkins workspace following parallel distribution tests
2 parents 0b91aa8 + 6ed500e commit b34a81b

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

Jenkinsfile

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -488,20 +488,24 @@ pipeline {
488488
for (f in changedDistributionTests.collate(24)) {
489489
def names = f.join(" ")
490490
tests["Distribution Tests: ${names}"] = { node ("linux && docker") {
491+
deleteDir()
491492
docker.image('stanorg/ci:gpu-cpp17').inside {
492-
unstash 'MathSetup'
493-
sh """
494-
echo CXX=${CLANG_CXX} > make/local
495-
echo O=0 >> make/local
496-
echo N_TESTS=${N_TESTS} >> make/local
497-
"""
498-
script {
499-
if (params.withRowVector || isBranch('develop') || isBranch('master')) {
500-
sh "echo CXXFLAGS+=-DSTAN_TEST_ROW_VECTORS >> make/local"
501-
sh "echo CXXFLAGS+=-DSTAN_PROB_TEST_ALL >> make/local"
493+
catchError {
494+
unstash 'MathSetup'
495+
sh """
496+
echo CXX=${CLANG_CXX} > make/local
497+
echo O=0 >> make/local
498+
echo N_TESTS=${N_TESTS} >> make/local
499+
"""
500+
script {
501+
if (params.withRowVector || isBranch('develop') || isBranch('master')) {
502+
sh "echo CXXFLAGS+=-DSTAN_TEST_ROW_VECTORS >> make/local"
503+
sh "echo CXXFLAGS+=-DSTAN_PROB_TEST_ALL >> make/local"
504+
}
502505
}
506+
sh "./runTests.py -j${PARALLEL} ${names}"
503507
}
504-
sh "./runTests.py -j${PARALLEL} ${names}"
508+
deleteDir()
505509
}
506510
} }
507511
}

0 commit comments

Comments
 (0)