use job name for container name 92/5692/1
authorMike Marchetti <mmarchetti@sandvine.com>
Thu, 16 Nov 2017 13:56:10 +0000 (08:56 -0500)
committerMike Marchetti <mmarchetti@sandvine.com>
Thu, 16 Nov 2017 14:05:13 +0000 (09:05 -0500)
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 8b4231c..082f728 100644 (file)
@@ -40,8 +40,6 @@ node("${params.NODE}") {
     sh 'env'
 
     tag_or_branch = params.GERRIT_BRANCH.replaceAll(/\./,"")
-    container_name_prefix = "osm-${tag_or_branch}" 
-    container_name = "${container_name_prefix}-${BUILD_NUMBER}"
 
     stage("Checkout") {
         checkout scm
@@ -54,11 +52,14 @@ node("${params.NODE}") {
 
     // upstream jobs always use merged artifacts
     upstream_main_job += '-merge'
-
+    container_name_prefix = "osm-${tag_or_branch}"
+    container_name = "${container_name_prefix}"
     if ( JOB_NAME.contains('merge') ) {
         save_artifacts = true
         println("merge job, saving artifacts")
+        container_name += "-merge"
     }
+    container_name += "-${BUILD_NUMBER}"
 
     // Copy the artifacts from the upstream jobs
     stage("Copy Artifacts") {