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 fca321b commit 2e4b403
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ pipeline {
def targets_string = sh(script: 'make list-targets', returnStdout: true)
def targets1 = targets_string.tokenize('\n')
def targets = ['ath79-generic','ipq40xx-generic'] // override for testing purposes
def build_stages = [:]

targets.each { target_name ->
stage("Build ${target_name}") {
build_stages[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 2e4b403

Please sign in to comment.