From 58576a78ba7f7f65722b99692ff5ef3d94b2c41c Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 15 May 2017 20:19:29 -0400 Subject: Apex: fixes upload artifact Change-Id: Ib12722ec85fe46d1b6dccb7bfc2da748386dac97 Signed-off-by: Tim Rozet --- jjb/apex/apex-download-artifact.sh | 10 +++++++++- jjb/apex/apex.yml | 6 ++++++ jjb/apex/apex.yml.j2 | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/apex/apex-download-artifact.sh b/jjb/apex/apex-download-artifact.sh index 0aced820c..f25325129 100755 --- a/jjb/apex/apex-download-artifact.sh +++ b/jjb/apex/apex-download-artifact.sh @@ -5,6 +5,11 @@ set -o pipefail APEX_PKGS="common undercloud" # removed onos for danube +# log info to console +echo "Downloading the Apex artifact. This could take some time..." +echo "--------------------------------------------------------" +echo + [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY if [[ "$ARTIFACT_VERSION" =~ dev ]]; then @@ -13,13 +18,16 @@ if [[ "$ARTIFACT_VERSION" =~ dev ]]; then export OPNFV_ARTIFACT_VERSION="dev${GERRIT_CHANGE_NUMBER}_${GERRIT_PATCHSET_NUMBER}" # get build artifact pushd ${BUILD_DIRECTORY} > /dev/null - echo "Downloading packaged dev build..." + echo "Downloading packaged dev build: apex-${OPNFV_ARTIFACT_VERSION}.tar.gz" curl --fail -s -o $BUILD_DIRECTORY/apex-${OPNFV_ARTIFACT_VERSION}.tar.gz http://$GS_URL/apex-${OPNFV_ARTIFACT_VERSION}.tar.gz tar -xvf apex-${OPNFV_ARTIFACT_VERSION}.tar.gz popd > /dev/null else + echo "Will download RPMs and ISO..." + # Must be RPMs/ISO export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d") + echo "Downloading opnfv-${OPNFV_ARTIFACT_VERSION}.properties" # get the properties file in order to get info regarding artifacts curl --fail -s -o $BUILD_DIRECTORY/opnfv.properties http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 1e13cbda3..f95fb6b80 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -199,6 +199,7 @@ - name: 'apex-deploy-virtual-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION DEPLOY_SCENARIO={verify-scenario} OPNFV_CLEAN=yes GERRIT_BRANCH=$GERRIT_BRANCH @@ -247,6 +248,10 @@ name: GIT_BASE default: https://gerrit.opnfv.org/gerrit/$PROJECT description: "Used for overriding the GIT URL coming from parameters macro." + - string: + name: ARTIFACT_VERSION + default: dev + description: "Used for overriding the ARTIFACT_VERSION" scm: - git-scm-gerrit @@ -297,6 +302,7 @@ - name: 'apex-deploy-virtual-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION DEPLOY_SCENARIO=gate OPNFV_CLEAN=yes GERRIT_BRANCH=$GERRIT_BRANCH diff --git a/jjb/apex/apex.yml.j2 b/jjb/apex/apex.yml.j2 index ade876c3f..c8c5f3753 100644 --- a/jjb/apex/apex.yml.j2 +++ b/jjb/apex/apex.yml.j2 @@ -199,6 +199,7 @@ - name: 'apex-deploy-virtual-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION DEPLOY_SCENARIO={verify-scenario} OPNFV_CLEAN=yes GERRIT_BRANCH=$GERRIT_BRANCH @@ -247,6 +248,10 @@ name: GIT_BASE default: https://gerrit.opnfv.org/gerrit/$PROJECT description: "Used for overriding the GIT URL coming from parameters macro." + - string: + name: ARTIFACT_VERSION + default: dev + description: "Used for overriding the ARTIFACT_VERSION" scm: - git-scm-gerrit @@ -297,6 +302,7 @@ - name: 'apex-deploy-virtual-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION DEPLOY_SCENARIO=gate OPNFV_CLEAN=yes GERRIT_BRANCH=$GERRIT_BRANCH -- cgit 1.2.3-korg