Rework translation templates
Currently we run the post job for each and every change, even if that branch is not set up in Zanata for translation. Since we have already branch specific templates, let's use them and add a post job for each of them that mirrors the periodic job. This way we only run a post job on a branch if we also have a corresponding periodic job to import changes back. Change-Id: I6b647ecee41f1d41f0d59f913d5213046b253b22
This commit is contained in:
parent
a184999574
commit
1237a8de39
@ -528,13 +528,15 @@
|
||||
- project-template:
|
||||
name: translation-jobs
|
||||
description: |
|
||||
Sync translations to translation server and back again.
|
||||
Sync translations to translation server and back again for
|
||||
**master** only.
|
||||
|
||||
This is intented for official OpenStack projects that have
|
||||
translations set up.
|
||||
post:
|
||||
jobs:
|
||||
- upstream-translation-update
|
||||
- upstream-translation-update:
|
||||
branches: master
|
||||
periodic:
|
||||
jobs:
|
||||
- propose-translation-update:
|
||||
@ -543,7 +545,15 @@
|
||||
- project-template:
|
||||
name: translation-jobs-ocata
|
||||
description: |
|
||||
Sync translations from translation server for ocata branch.
|
||||
Sync translations to translation server and back again for
|
||||
**stable/ocata** branch only.
|
||||
|
||||
This is intented for official OpenStack projects that have
|
||||
translations set up.
|
||||
post:
|
||||
jobs:
|
||||
- upstream-translation-update:
|
||||
branches: stable/ocata
|
||||
periodic:
|
||||
jobs:
|
||||
- propose-translation-update:
|
||||
@ -552,7 +562,15 @@
|
||||
- project-template:
|
||||
name: translation-jobs-pike
|
||||
description: |
|
||||
Sync translations from translation server for pike branch.
|
||||
Sync translations to translation server and back again for
|
||||
**stable/pike** branch only.
|
||||
|
||||
This is intented for official OpenStack projects that have
|
||||
translations set up.
|
||||
post:
|
||||
jobs:
|
||||
- upstream-translation-update:
|
||||
branches: stable/pike
|
||||
periodic:
|
||||
jobs:
|
||||
- propose-translation-update:
|
||||
|
Loading…
x
Reference in New Issue
Block a user