Skip to content

Commit

Permalink
feat: Draft parallel execution
Browse files Browse the repository at this point in the history
  • Loading branch information
AiyionPrime committed Jun 30, 2024
1 parent 7bdf8ab commit 33f0803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ pipeline {
def targets_string = sh(script: 'make list-targets', returnStdout: true)
def targets = targets_string.tokenize('\n')
def targets = ['ath79-generic','ipq40xx-generic'] // override for testing purposes
targets.each { target_name ->
def build_stages = {targets.each { target_name ->
stage("Build ${target_name}") {
echo "${target_name}"
def built = build(job: "nightly-wireguard", wait: false, propagate: false, parameters: [
def built = build(job: "nightly-wireguard", wait: true, propagate: false, parameters: [
string(name: 'GLUON_TARGET', value: "${target_name}")
])
}
}
}}
parallel build_stages
}
}
}
Expand Down

0 comments on commit 33f0803

Please sign in to comment.