From f516cba24f649483a15b20da19ba89afe658d07d Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 15 May 2017 09:51:16 -0400 Subject: Apex: fixes building rpms for patches Change-Id: I2de72d983035cbf79f9f09850cd98dfd349783ca Signed-off-by: Tim Rozet --- jjb/apex/apex-build.sh | 4 ++-- jjb/apex/apex.yml | 1 + jjb/apex/apex.yml.j2 | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'jjb') diff --git a/jjb/apex/apex-build.sh b/jjb/apex/apex-build.sh index 4e20df96a..bf660a42c 100755 --- a/jjb/apex/apex-build.sh +++ b/jjb/apex/apex-build.sh @@ -9,7 +9,7 @@ echo # create the cache directory if it doesn't exist [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY # set OPNFV_ARTIFACT_VERSION -if echo $BUILD_TAG | grep "apex-verify" 1> /dev/null; then +if echo $ARTIFACT_VERSION | grep "apex-verify" 1> /dev/null; then export OPNFV_ARTIFACT_VERSION="dev${GERRIT_CHANGE_NUMBER}${GERRIT_PATCHSET_NUMBER}" export BUILD_ARGS="-r $OPNFV_ARTIFACT_VERSION -c $CACHE_DIRECTORY" elif echo $BUILD_TAG | grep "csit" 1> /dev/null; then @@ -42,7 +42,7 @@ echo "Cache Directory Contents:" echo "-------------------------" ls -al $CACHE_DIRECTORY -if ! echo $BUILD_TAG | grep "apex-verify" 1> /dev/null; then +if ! echo $ARTIFACT_VERSION | grep "apex-verify" 1> /dev/null; then echo "Writing opnfv.properties file" # save information regarding artifact into file ( diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 2d4e7f75b..c3e23bae6 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -183,6 +183,7 @@ - name: 'apex-build-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION GERRIT_BRANCH=$GERRIT_BRANCH GERRIT_REFSPEC=$GERRIT_REFSPEC GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER diff --git a/jjb/apex/apex.yml.j2 b/jjb/apex/apex.yml.j2 index d88fcd372..2e179d470 100644 --- a/jjb/apex/apex.yml.j2 +++ b/jjb/apex/apex.yml.j2 @@ -183,6 +183,7 @@ - name: 'apex-build-{stream}' current-parameters: false predefined-parameters: | + ARTIFACT_VERSION=$ARTIFACT_VERSION GERRIT_BRANCH=$GERRIT_BRANCH GERRIT_REFSPEC=$GERRIT_REFSPEC GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER -- cgit 1.2.3-korg