Skip to content

Commit

Permalink
ci: Lauńch subbuilds in case target is ALL
Browse files Browse the repository at this point in the history
params.GLUON_TARGET
  • Loading branch information
AiyionPrime committed Jun 29, 2024
1 parent 42f83af commit 7f61ed1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
pipeline {
parameters {
string(
defaultValue: 'ALL',
name: 'GLUON_TARGET',
trim: true
)
}
agent { label 'linux' }
stages {
stage('Clone gluon') {
Expand Down Expand Up @@ -37,5 +44,25 @@ pipeline {
}
}
}
stage('Trigger target builds') {
when {
expression {
return params.GLUON_TARGET == 'ALL'
}
}
steps {
dir('gluon') {
script {
def targets_string = sh(script: 'make list-targets', returnStdout: true)
def targets = targets_string.tokenize('\n')
targets.each { target_name ->
stage("Build ${target_name}") {
build job: 'nightly-wireguard', parameters: [string(name: 'GLUON_TARGET', value: "${target_name}")], propagate: false
}
}
}
}
}
}
}
}

0 comments on commit 7f61ed1

Please sign in to comment.