Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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