From 2e4b40351d412508aa38a433b7132401737d3978 Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Sun, 30 Jun 2024 17:08:33 +0200 Subject: [PATCH] feat: Draft parallel execution --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 54a20a0..6e42b8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }