BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
-source $BUILD_DIRECTORY/../opnfv.properties
+if [[ ! "$ARTIFACT_VERSION" =~ dev ]]; then
+ source $BUILD_DIRECTORY/../opnfv.properties
+fi
importkey () {
# clone releng repository
uploadimages () {
# Uploads dev tarball
- export OPNFV_ARTIFACT_VERSION="dev${GERRIT_CHANGE_NUMBER}${GERRIT_PATCHSET_NUMBER}"
+ GERRIT_PATCHSET_NUMBER=$(echo $GERRIT_REFSPEC | grep -Eo '[0-9]+$')
+ export OPNFV_ARTIFACT_VERSION="dev${GERRIT_CHANGE_NUMBER}_${GERRIT_PATCHSET_NUMBER}"
echo "Uploading development build tarball"
pushd $BUILD_DIRECTORY > /dev/null
tar czf apex-${OPNFV_ARTIFACT_VERSION}.tar.gz *.qcow2
description: "Directory where the build artifact will be located upon the completion of the build."
- string:
name: CACHE_DIRECTORY
- default: $HOME/opnfv/cache{gs-pathname}
+ default: $HOME/opnfv/apex-cache{gs-pathname}
description: "Directory where the cache to be used during the build is located."
- string:
name: GIT_BASE
description: "Directory where the build artifact will be located upon the completion of the build."
- string:
name: CACHE_DIRECTORY
- default: $HOME/opnfv/cache{gs-pathname}
+ default: $HOME/opnfv/apex-cache{gs-pathname}
description: "Directory where the cache to be used during the build is located."
- string:
name: GIT_BASE