X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=49b4b72f8b5970dfbcf87590f7e962767add36a1;hb=refs%2Fchanges%2F49%2F6549%2F1;hp=a788f7bd6c8e6f77f6bb550a51b39a8c42f3043e;hpb=aa7dbd3fc05068b77f42e8698ea4dda3d02cc470;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index a788f7bd..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" @@ -152,6 +155,7 @@ node("${params.NODE}") { rm -f changelog/changelog-osm.html [ ! -d changelog ] || for mdgchange in \$(ls changelog); do cat changelog/\$mdgchange >> changelog/changelog-osm.html; done """ + RELEASE_DIR = sh(returnStdout:true, script: 'pwd').trim() } // start an apache server to serve up the images http_server_name = "${container_name}-apache" @@ -257,7 +261,7 @@ node("${params.NODE}") { archiveArtifacts artifacts: "build_version.txt", fingerprint: true // Archive the tested repo - dir("repo/${RELEASE}") { + dir("${RELEASE_DIR}") { ci_helper.archive(params.ARTIFACTORY_SERVER,RELEASE,GERRIT_BRANCH,'tested') } }