Skip to content

Commit 9149f05

Browse files
authored
Merge pull request #2869 from stan-dev/tests/empty-distribution-changeset
Explicitly test for empty distribution test changelist
2 parents f154fea + 29171c6 commit 9149f05

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,23 @@ pipeline {
462462
script {
463463
retry(3) { checkout scm }
464464
if (params.runAllDistributions || isBranch('develop') || isBranch('master')) {
465-
changedDistributionTests = sh(script:"python3 test/prob/getDependencies.py --pretend-all", returnStdout:true).trim().split('\n').toList()
465+
changedDistributionTests = sh(script:"python3 test/prob/getDependencies.py --pretend-all", returnStdout:true).trim().readLines()
466466
} else {
467-
changedDistributionTests = sh(script:"python3 test/prob/getDependencies.py", returnStdout:true).trim().split('\n').toList()
467+
changedDistributionTests = sh(script:"python3 test/prob/getDependencies.py", returnStdout:true).trim().readLines()
468468
}
469469
}
470470
}
471471
}
472472

473473
stage ('Distribution tests') {
474474
when {
475-
expression {
476-
!skipRemainingStages
475+
allOf {
476+
expression {
477+
!skipRemainingStages
478+
}
479+
expression {
480+
!changedDistributionTests.isEmpty()
481+
}
477482
}
478483
}
479484
agent { label 'linux && docker' }

0 commit comments

Comments
 (0)