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 30, 2024
1 parent 42f83af commit c639746
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 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 @@ -30,12 +37,41 @@ pipeline {
}
}
}
/*
stage('Get other repos used by gluon') {
steps {
dir('gluon') {
sh 'make update'
}
}
}
*/
stage('Trigger target builds') {
when {
expression {
return params.GLUON_TARGET == 'ALL'
}
}
steps {
dir('gluon') {
build job: 'nigthly-wireguard', parameters: [
string(name: 'GLUON_TARGET', value: "ath79")
]
script {
//def targets_string = sh(script: 'make list-targets', returnStdout: true)
//def targets = targets_string.tokenize('\n')
//def built = build(job: "nightly-wireguard", wait: true, propagate: false, parameters: [string(name: 'GLUON_TARGET', value: "ath79")])
targets.each { target_name ->
stage("Build ${target_name}") {
echo "${target_name}"
//def built = build(job: "nightly-wireguard", wait: true, propagate: false, parameters: [
// string(name: 'GLUON_TARGET', value: "${target_name}")
//])
}
}
}
}
}
}
}
}

0 comments on commit c639746

Please sign in to comment.