X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=609708afce76e7244b0053a2f4a9f013a8de4437;hb=refs%2Fchanges%2F54%2F6554%2F1;hp=1d1527cd11fb0d8c64043090d67202c82f03332e;hpb=1d27ed490a49671040d439b84a83a55d0f68c883;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 1d1527cd..609708af 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" @@ -232,7 +235,10 @@ node("${params.NODE}") { stage("Smoke") { run_systest(container_name,container_name,"smoke") // archive smoke success until stage_4 is ready - stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS + + if ( currentBuild.result.equals('SUCCESS') ) { + stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS + } } }