fix for retrieval of image from repo via <$branch> 77/2277/1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 20 Sep 2017 19:58:32 +0000 (15:58 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 20 Sep 2017 19:58:32 +0000 (15:58 -0400)
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_helper.groovy

index 243a13d..c047a12 100644 (file)
@@ -33,8 +33,8 @@ def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte
 
     server.download(downloadSpec)
     // workaround.  flatten and repo the specific build num from the directory
-    sh "cp -R ${build_num}/* ."
-    sh "rm -rf ${build_num}"
+    sh "cp -R ${branch}/${build_num}/* ."
+    sh "rm -rf ${branch}/${build_num}"
 }
 
 def get_env_value(build_env_file,key) {