Skip to content
Snippets Groups Projects
Commit 8940bcd1 authored by Mike Marchetti's avatar Mike Marchetti
Browse files

use job name for container name


Signed-off-by: default avatarMike Marchetti <mmarchetti@sandvine.com>
parent 69861b8e
No related branches found
No related tags found
No related merge requests found
......@@ -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") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment