From 12005f00da4e9a3c8f64b91ba43875bd310d9505 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, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dfa7c83..1a9297b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,14 +56,15 @@ 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 - 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 } } }