// 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"
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"
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
+ }
}
}
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')
}
}