From 1237a8de39e91db493953996f0fa7c6842b4dce9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 19 Dec 2017 17:41:07 +0100 Subject: [PATCH] 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 --- zuul.d/project-templates.yaml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index da8c1f47..cc7c3561 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -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: