Apex: fixes build directory assumption in upload artifact 07/34707/1
authorTim Rozet <trozet@redhat.com>
Sat, 13 May 2017 03:02:01 +0000 (23:02 -0400)
committerTim Rozet <trozet@redhat.com>
Sat, 13 May 2017 03:02:01 +0000 (23:02 -0400)
Change-Id: Iae230e37137b0408a74ba74bd551a88dd6ffa076
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-upload-artifact.sh

index 96c22bf..c886296 100755 (executable)
@@ -13,10 +13,9 @@ echo "Uploading the Apex ${ARTIFACT_TYPE} artifact. This could take some time...
 echo "--------------------------------------------------------"
 echo
 
-# source the opnfv.properties to get ARTIFACT_VERSION
-source $WORKSPACE/opnfv.properties
+BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
 
-BUILD_DIRECTORY=${WORKSPACE}/.build
+source $BUILD_DIRECTORY/../opnfv.properties
 
 importkey () {
   # clone releng repository