Skip to content

Commit

Permalink
Merge pull request #180 from jglick/failFast
Browse files Browse the repository at this point in the history
Read failFast from a file
  • Loading branch information
jetersen authored Jan 28, 2020
2 parents 6ed7220 + 391d823 commit ff1cede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ def mavenEnv(body) {

def plugins
def lines
def failFast

stage('prep') {
mavenEnv {
checkout scm
failFast = Boolean.parseBoolean(readFile('failFast').trim())
withEnv(['SAMPLE_PLUGIN_OPTS=-Dset.changelist']) {
sh 'bash prep.sh'
}
Expand All @@ -43,7 +45,7 @@ stage('prep') {
// Running in parallel by plugin but serially by line works, albeit slowly, since workflow-cps is a bottleneck.
// So we try to manually constrain parallelism.
def semaphore = 30 // 50× parallelism usually works; 84× seems to fail reliably.
branches = [failFast: true]
branches = [failFast: failFast]
lines.each {line ->
plugins.each { plugin ->
branches["pct-$plugin-$line"] = {
Expand Down
1 change: 1 addition & 0 deletions failFast
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true

0 comments on commit ff1cede

Please sign in to comment.