Correct current_build expansion for rhos pipeline jobs

current_build for rhos jobs is a puddle not a dlrn hash
so when we run it through the hash expander we get nothing
back and pass a blank current build. The build then fails
because quickstart can't figure out what puddle to download.

Change-Id: I011e358cd26e553275d00e02e198d3744e1c4cbe
This commit is contained in:
jkilpatr 2017-11-29 08:12:50 -05:00 committed by Justin Kilpatrick
parent 0804dc9dc0
commit 277111dd31
1 changed files with 2 additions and 1 deletions

View File

@ -45,13 +45,14 @@ if [ ! -z ${current_build+x} ]
source $WORKSPACE/tripleo-environments/ci-scripts/internal-functions.sh
hash=$(get_delorean_hash_from_url $current_build)
expanded_hash=$(get_expanded_delorean_hash_from_url $current_build)
export VARS="$VARS --extra-vars current_build=$hash"
if [[ $RELEASE == *rhos-* ]]
then
export RELEASE="$RELEASE" #no mutations needed after latest changes
export VARS="$VARS --extra-vars current_build=$current_build"
else
export RELEASE="$RELEASE-rhel"
export VARS="$VARS --extra-vars current_build=$hash"
fi
#If we are not in the pipeline downstream builds need to use current-passed-ci