jobs/seed: moved environment getter into pipeline statement

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-09-04 10:02:19 +02:00
parent bd63e87719
commit e0ae8a99e0
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
def branchToUse = "${env.SEEDING_BRANCH}"
pipelineJob('nwl') { pipelineJob('nwl') {
def branchToUse = binding.variables.get("SEEDING_BRANCH")
displayName('1. NWL CI Pipeline') displayName('1. NWL CI Pipeline')
description('CI pipeline for the NetModule Wireless Linux') description('CI pipeline for the NetModule Wireless Linux')
authorization { authorization {
@ -44,6 +44,8 @@ pipelineJob('nwl') {
} }
pipelineJob('nwl-target') { pipelineJob('nwl-target') {
def branchToUse = binding.variables.get("SEEDING_BRANCH")
displayName('2. NWL Yocto Build') displayName('2. NWL Yocto Build')
description('CI pipeline building a NetModule Wireless Linux Yocto Target') description('CI pipeline building a NetModule Wireless Linux Yocto Target')
authorization { authorization {
@ -79,6 +81,8 @@ pipelineJob('nwl-target') {
pipelineJob('nwl-update-src-rev') { pipelineJob('nwl-update-src-rev') {
def branchToUse = binding.variables.get("SEEDING_BRANCH")
displayName('0. Update Source Revisions') displayName('0. Update Source Revisions')
description('CI pipeline updating the source revisions for the NetModule Wireless Linux') description('CI pipeline updating the source revisions for the NetModule Wireless Linux')
authorization { authorization {