From 3819396cc01d06b92e3d27c77e9db24ed781bded Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 25 Sep 2016 07:39:05 +0200 Subject: [PATCH] Remove translations for releasenotes from branches Releasenotes publishing happens on master - and only from there. This is the case for both original content and translations. Repos that get branched might contain releasenotes translations, so remove them to not have outdated files there. Change-Id: I25fe1b2ac89cf34611f55048cb5d1317dd384aa1 --- jenkins/scripts/propose_translation_update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index cb9bfe4f60..73eaa22ebf 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -157,6 +157,7 @@ function propose_releasenotes { # testing are set up in zuul/layout.yaml. If releasenotes exist, # they get pushed to the translation server. + # Note that releasenotes only get translated on master. if [[ "$version" == "master" && -f releasenotes/source/conf.py ]]; then # Note that we need to generate these so that we can calculate @@ -172,6 +173,12 @@ function propose_releasenotes { git add releasenotes/source/locale/ fi fi + + # Remove any releasenotes translations from stable branches, they + # are not needed there. + if [[ "$version" != "master" && -d releasenotes/source/locale ]]; then + git rm -rf releasenotes/source/locale + fi }