From bd63e877192dac6cc731476c7b249d3cce57bf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Mattm=C3=BCller?= Date: Mon, 4 Sep 2023 09:41:58 +0200 Subject: [PATCH] jobs/seed: use variable for branch and use environment syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Mattmüller --- jobs/Jenkinsfile_Seed | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jobs/Jenkinsfile_Seed b/jobs/Jenkinsfile_Seed index 9dcdf0a..fd76921 100644 --- a/jobs/Jenkinsfile_Seed +++ b/jobs/Jenkinsfile_Seed @@ -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)