diff --git a/jenkins/jobs/translation-jobs.yaml b/jenkins/jobs/translation-jobs.yaml index 9e84cdd5dd..dbf1249769 100644 --- a/jenkins/jobs/translation-jobs.yaml +++ b/jenkins/jobs/translation-jobs.yaml @@ -31,6 +31,23 @@ node: 'proposal' +- job-template: + name: '{name}-propose-translation-update-zanta' + + builders: + - revoke-sudo + - branch-git-prep: + branch: master + - shell: | + #!/bin/bash -xe + /usr/local/jenkins/slave_scripts/propose_translation_update.sh {name} zanata + + publishers: + - console-log + - proposal-slave-cleanup + + node: 'proposal' + - job: name: 'django_openstack_auth-upstream-translation-update' @@ -64,6 +81,23 @@ node: 'proposal' +- job: + name: 'django_openstack_auth-propose-translation-update-zanata' + + builders: + - revoke-sudo + - branch-git-prep: + branch: master + - shell: | + #!/bin/bash -xe + /usr/local/jenkins/slave_scripts/propose_translation_update_django_openstack_auth.sh zanata + + publishers: + - console-log + - proposal-slave-cleanup + + node: 'proposal' + - job: name: 'horizon-upstream-translation-update' diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index e9fba0f0b5..cd3043e4c7 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -200,10 +200,11 @@ function setup_manuals { # Setup project so that git review works, sets global variable # COMMIT_MSG. function setup_review { + local TRANSLATION_SOFTWARE=${1:-Transifex} FULL_PROJECT=$(grep project .gitreview | cut -f2 -d= |sed -e 's/\.git$//') set +e read -d '' COMMIT_MSG <