diff --git a/roles/prepare-zanata-client/files/upstream_translation_update.sh b/roles/prepare-zanata-client/files/upstream_translation_update.sh index 4b5d50e7..ad3a7e3a 100755 --- a/roles/prepare-zanata-client/files/upstream_translation_update.sh +++ b/roles/prepare-zanata-client/files/upstream_translation_update.sh @@ -14,17 +14,11 @@ PROJECT=$1 JOBNAME=$2 -HORIZON_DIR=$3 +BRANCHNAME=$3 +HORIZON_DIR=$4 # Replace /'s in branch names with -'s because Zanata doesn't # allow /'s in version names. -# Zuul v3 native job passes the branch in as parameter but -# does not set ZUUL_REFNAME. -if [ -z "$ZUUL_REFNAME" ] ; then - BRANCHNAME=$3 -else - BRANCHNAME=$ZUUL_REFNAME -fi ZANATA_VERSION=${BRANCHNAME//\//-} SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"