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') {
|
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue