Merge "Fix ZUUL_REFNAME for translation jobs"
This commit is contained in:
@@ -17,12 +17,19 @@ JOBNAME=$2
|
|||||||
|
|
||||||
# Replace /'s in branch names with -'s because Zanata doesn't
|
# Replace /'s in branch names with -'s because Zanata doesn't
|
||||||
# allow /'s in version names.
|
# allow /'s in version names.
|
||||||
ZANATA_VERSION=${ZUUL_REFNAME//\//-}
|
# 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 )"
|
SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
source $SCRIPTSDIR/common_translation_update.sh
|
source $SCRIPTSDIR/common_translation_update.sh
|
||||||
|
|
||||||
init_branch $ZUUL_REFNAME
|
init_branch $BRANCHNAME
|
||||||
|
|
||||||
# List of all modules to copy POT files from
|
# List of all modules to copy POT files from
|
||||||
ALL_MODULES=""
|
ALL_MODULES=""
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run upstream_translation_update.sh script
|
- name: Run upstream_translation_update.sh script
|
||||||
command: "{{ ansible_user_dir }}/scripts/upstream_translation_update.sh {{ zuul.project.short_name }} {{ zuul.job }}"
|
command: "{{ ansible_user_dir }}/scripts/upstream_translation_update.sh {{ zuul.project.short_name }} {{ zuul.job }} {{zuul.branch}}"
|
||||||
args:
|
args:
|
||||||
chdir: "src/{{ zuul.project.canonical_name }}"
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user