diff --git a/jenkins/jobs/translation-jobs.yaml b/jenkins/jobs/translation-jobs.yaml index 6d5f6f7ada..4b0b52889d 100644 --- a/jenkins/jobs/translation-jobs.yaml +++ b/jenkins/jobs/translation-jobs.yaml @@ -15,15 +15,15 @@ node: 'proposal' - job-template: - name: '{name}-propose-translation-update' + name: '{name}-propose-translation-update{suffix}' builders: - revoke-sudo - branch-git-prep: - branch: master + branch: '{branch}' - shell: | #!/bin/bash -xe - /usr/local/jenkins/slave_scripts/propose_translation_update.sh {name} + /usr/local/jenkins/slave_scripts/propose_translation_update.sh {name} {branch} publishers: - console-log @@ -33,15 +33,19 @@ - job-group: name: translation-jobs + suffix: '' + branch: master jobs: - '{name}-upstream-translation-update' - - '{name}-propose-translation-update' + - '{name}-propose-translation-update{suffix}' - job-group: name: manual-translation-jobs + suffix: '' + branch: master jobs: - '{name}-upstream-translation-update' - - '{name}-propose-translation-update' + - '{name}-propose-translation-update{suffix}' - 'gate-{name}-tox-{envlist}': envlist: checklang - '{name}-tox-doc-{envlist}': diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index 96ddd22c55..043dc2cd6f 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -132,6 +132,9 @@ function setup_manuals { # Setup project so that git review works, sets global variable # COMMIT_MSG. function setup_review { + # Note we cannot rely on the default branch in .gitreview being + # correct so we are very explicit here. + local branch=${1:-master} FULL_PROJECT=$(grep project .gitreview | cut -f2 -d= |sed -e 's/\.git$//') set +e read -d '' COMMIT_MSG <