jobs/seed: use variable for branch and use environment syntax

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-09-04 09:41:58 +02:00
parent a8e655a0d8
commit bd63e87719
1 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
def branchToUse = "${env.SEEDING_BRANCH}"
pipelineJob('nwl') { pipelineJob('nwl') {
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')
@ -24,7 +26,7 @@ pipelineJob('nwl') {
cpsScm { cpsScm {
scm { scm {
git { git {
branches('$SEEDING_BRANCH') branches(branchToUse)
extensions { extensions {
cloneOptions { cloneOptions {
depth(1) depth(1)
@ -58,7 +60,7 @@ pipelineJob('nwl-target') {
cpsScm { cpsScm {
scm { scm {
git { git {
branches('$SEEDING_BRANCH') branches(branchToUse)
extensions { extensions {
cloneOptions { cloneOptions {
depth(1) depth(1)
@ -93,7 +95,7 @@ pipelineJob('nwl-update-src-rev') {
cpsScm { cpsScm {
scm { scm {
git { git {
branches('$SEEDING_BRANCH') branches(branchToUse)
extensions { extensions {
cloneOptions { cloneOptions {
depth(1) depth(1)