From: Mike Marchetti Date: Fri, 21 Sep 2018 20:55:43 +0000 (-0400) Subject: On upstream build, remove old artifacts X-Git-Tag: v5.0.0~102 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F6549%2F1;hp=1d27ed490a49671040d439b84a83a55d0f68c883;p=osm%2Fdevops.git On upstream build, remove old artifacts Change-Id: I4f7820f5aab3d0f3e28c62a65eca2acc6fcd4451 Signed-off-by: Mike Marchetti --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 1d1527cd..49b4b72f 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -122,6 +122,9 @@ node("${params.NODE}") { // the upstream job name contains suffix with the project. Need this stripped off def project_without_branch = params.UPSTREAM_JOB_NAME.split('/')[0] + // Remove the previous artifact for this component. Use the new upstream artifact + sh "rm -rf pool/${component}" + ci_helper.get_archive(params.ARTIFACTORY_SERVER,component,GERRIT_BRANCH, "${project_without_branch} :: ${GERRIT_BRANCH}", build_num) sh "rm -rf dists"