X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=00c3f30644eef8fa4fd68e8e237baac3fce97755;hb=9c38e15d9003a8fc540d1a22c1e5fbfbdf0e0437;hp=0d2203ee90b82c096bafb892158baab8bd333b97;hpb=8343e3fc441f1669ae906e85699e3f244dddc0b0;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 0d2203ee..00c3f306 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -18,7 +18,7 @@ properties([ parameters([ string(defaultValue: env.GERRIT_BRANCH, description: '', name: 'GERRIT_BRANCH'), - string(defaultValue: 'pipeline', description: '', name: 'NODE'), + string(defaultValue: 'system', description: '', name: 'NODE'), string(defaultValue: '', description: '', name: 'BUILD_FROM_SOURCE'), string(defaultValue: 'unstable', description: '', name: 'REPO_DISTRO'), string(defaultValue: '', description: '', name: 'COMMIT_ID'), @@ -29,6 +29,7 @@ properties([ string(defaultValue: '', description: '', name: 'UPSTREAM_JOB_NUMBER'), string(defaultValue: '', description: '', name: 'UPSTREAM_JOB_NUMBER'), string(defaultValue: 'dpkg1', description: '', name: 'GPG_KEY_NAME'), + string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'), booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_FAIL'), booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_PASS'), ]) @@ -59,7 +60,7 @@ node("${params.NODE}") { // given target UPSTREAM_SUFFIX dir("${RELEASE}") { - def list = ["SO", "UI", "RO", "openvim", "osmclient"] + def list = ["SO", "UI", "RO", "openvim", "osmclient", "IM"] for (component in list) { step ([$class: 'CopyArtifact', projectName: "${component}${params.UPSTREAM_SUFFIX}/${GERRIT_BRANCH}"]) @@ -68,7 +69,7 @@ node("${params.NODE}") { //options = get_env_from_build('build.env') build_num = ci_helper.get_env_value('build.env','BUILD_NUMBER') //build_num = sh(returnStdout:true, script: "cat build.env | awk -F= '/BUILD_NUMBER/{print \$2}'").trim() - ci_helper.get_archive(component,GERRIT_BRANCH, "${component}-stage_2 :: ${GERRIT_BRANCH}", build_num) + ci_helper.get_archive(params.ARTIFACTORY_SERVER,component,GERRIT_BRANCH, "${component}-stage_2 :: ${GERRIT_BRANCH}", build_num) // cleanup any prevously defined dists sh "rm -rf dists" @@ -89,7 +90,7 @@ node("${params.NODE}") { build_num = ci_helper.get_env_value('build.env','BUILD_NUMBER') component = ci_helper.get_mdg_from_project(ci_helper.get_env_value('build.env','GERRIT_PROJECT')) - ci_helper.get_archive(component,GERRIT_BRANCH, "${component}-stage_2 :: ${GERRIT_BRANCH}", build_num) + ci_helper.get_archive(params.ARTIFACTORY_SERVER,component,GERRIT_BRANCH, "${component}-stage_2 :: ${GERRIT_BRANCH}", build_num) sh "rm -rf dists" } @@ -179,7 +180,7 @@ node("${params.NODE}") { // Archive the tested repo dir("repo/${RELEASE}") { - ci_helper.archive(RELEASE,GERRIT_BRANCH,'tested') + ci_helper.archive(params.ARTIFACTORY_SERVER,RELEASE,GERRIT_BRANCH,'tested') } } }