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:
parent
a8e655a0d8
commit
bd63e87719
|
|
@ -1,3 +1,5 @@
|
|||
def branchToUse = "${env.SEEDING_BRANCH}"
|
||||
|
||||
pipelineJob('nwl') {
|
||||
displayName('1. NWL CI Pipeline')
|
||||
description('CI pipeline for the NetModule Wireless Linux')
|
||||
|
|
@ -24,7 +26,7 @@ pipelineJob('nwl') {
|
|||
cpsScm {
|
||||
scm {
|
||||
git {
|
||||
branches('$SEEDING_BRANCH')
|
||||
branches(branchToUse)
|
||||
extensions {
|
||||
cloneOptions {
|
||||
depth(1)
|
||||
|
|
@ -58,7 +60,7 @@ pipelineJob('nwl-target') {
|
|||
cpsScm {
|
||||
scm {
|
||||
git {
|
||||
branches('$SEEDING_BRANCH')
|
||||
branches(branchToUse)
|
||||
extensions {
|
||||
cloneOptions {
|
||||
depth(1)
|
||||
|
|
@ -93,7 +95,7 @@ pipelineJob('nwl-update-src-rev') {
|
|||
cpsScm {
|
||||
scm {
|
||||
git {
|
||||
branches('$SEEDING_BRANCH')
|
||||
branches(branchToUse)
|
||||
extensions {
|
||||
cloneOptions {
|
||||
depth(1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue