3ca25f7204
To help move to Zanata, we should pull down translations from the server. Add a function that should behave the same way as the existing Transifex function, as well as changing two existing scripts to call it based on a command-line parameter. Add two new jobs with a -zanata suffix so we can switch projects one at a time. This change deals with all of the Python projects and django_openstack_auth. Horizon and OpenStack manuals will be dealt with in a future patch. Change-Id: I8003ac37aeb89d59ceeba2e75eed2f8100b82367
182 lines
3.9 KiB
YAML
182 lines
3.9 KiB
YAML
- job-template:
|
|
name: '{name}-upstream-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/upstream_translation_update.sh {name}
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job-template:
|
|
name: '{name}-propose-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- branch-git-prep:
|
|
branch: master
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/propose_translation_update.sh {name}
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
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'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/upstream_translation_django_openstack_auth.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job:
|
|
name: 'django_openstack_auth-propose-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- branch-git-prep:
|
|
branch: master
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/propose_translation_update_django_openstack_auth.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
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'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/upstream_translation_horizon.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job:
|
|
name: 'horizon-propose-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- branch-git-prep:
|
|
branch: master
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/propose_translation_update_horizon.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job-template:
|
|
name: '{name}-manuals-upstream-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/upstream_translation_update_manuals.sh {name}
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job-template:
|
|
name: '{name}-manuals-propose-translation-update'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- branch-git-prep:
|
|
branch: master
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/propose_translation_update_manuals.sh {name}
|
|
|
|
publishers:
|
|
- console-log
|
|
- proposal-slave-cleanup
|
|
|
|
node: 'proposal'
|
|
|
|
- job-group:
|
|
name: translation-jobs
|
|
jobs:
|
|
- '{name}-upstream-translation-update'
|
|
- '{name}-propose-translation-update'
|
|
|
|
- job-group:
|
|
name: manual-translation-jobs
|
|
jobs:
|
|
- '{name}-manuals-upstream-translation-update'
|
|
- '{name}-manuals-propose-translation-update'
|
|
- 'gate-{name}-tox-{envlist}':
|
|
envlist: checklang
|
|
- '{name}-tox-doc-{envlist}':
|
|
envlist: publishlang
|