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

On upstream build, remove old artifacts


Change-Id: I4f7820f5aab3d0f3e28c62a65eca2acc6fcd4451
Signed-off-by: default avatarMike Marchetti <mmarchetti@sandvine.com>
parent 1d27ed49
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
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