Skip to content

Commit 7108183

Browse files
authored
Merge pull request #3200 from stan-dev/ci/use-parallel-from-executors
Use Jenkins executor-local PARALLEL value
2 parents 3a196d4 + 7d2f686 commit 7108183

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Jenkinsfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ def runTests(String testPath, boolean jumbo = false) {
77
sh "cat make/local"
88
sh "make print-compiler-flags"
99
if (jumbo && !params.disableJumbo) {
10-
sh "python3 runTests.py -j${env.PARALLEL} ${testPath} --jumbo --debug"
10+
sh "python3 runTests.py -j${PARALLEL} ${testPath} --jumbo --debug"
1111
} else {
12-
sh "python3 runTests.py -j${env.PARALLEL} ${testPath}"
12+
sh "python3 runTests.py -j${PARALLEL} ${testPath}"
1313
}
1414
}
1515
finally { junit 'test/**/*.xml' }
@@ -61,7 +61,6 @@ pipeline {
6161
OPENCL_PLATFORM_ID = 1
6262
OPENCL_PLATFORM_ID_CPU = 0
6363
OPENCL_PLATFORM_ID_GPU = 0
64-
PARALLEL = 4
6564
GIT_AUTHOR_NAME = 'Stan Jenkins'
6665
GIT_AUTHOR_EMAIL = 'mc.stanislaw@gmail.com'
6766
GIT_COMMITTER_NAME = 'Stan Jenkins'
@@ -273,7 +272,7 @@ pipeline {
273272
agent {
274273
docker {
275274
image 'stanorg/ci:gpu-cpp17'
276-
label 'linux'
275+
label 'linux && 8core'
277276
args '--cap-add SYS_PTRACE'
278277
}
279278
}
@@ -513,7 +512,7 @@ pipeline {
513512
def tests = [:]
514513
for (f in changedDistributionTests.collate(24)) {
515514
def names = f.join(" ")
516-
tests["Distribution Tests: ${names}"] = { node ("linux && docker") {
515+
tests["Distribution Tests: ${names}"] = { node ("linux && docker && 8core") {
517516
deleteDir()
518517
docker.image('stanorg/ci:gpu-cpp17').inside {
519518
catchError {

0 commit comments

Comments
 (0)