From 201d522db04151b9cc0341f8b538ea95836705da Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 8 Mar 2025 09:24:57 +0100 Subject: [PATCH] CI: try to fix crowdin CLI invocation --- .ci/Jenkinsfile.crowdin | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.ci/Jenkinsfile.crowdin b/.ci/Jenkinsfile.crowdin index c0cf42bb..a1b7e97b 100644 --- a/.ci/Jenkinsfile.crowdin +++ b/.ci/Jenkinsfile.crowdin @@ -22,7 +22,8 @@ timestamps { step([$class: 'WsCleanup']) } def tasks = [:] - def crowdin_cli = "java -jar ${tool 'crowdin-cli'}/crowdin-cli.jar --config .ci/crowdin.yml" + def crowdin_cli = "java -jar ${tool 'crowdin-cli'}/crowdin-cli.jar" + def crowdin_cli_suffix = "--config .ci/crowdin.yml" for (def branch in branches) { def upstream_branch = branch def my_branch = "l10n_${branch}" @@ -43,9 +44,9 @@ timestamps { stage("Crowdin for ${upstream_branch}") { withCredentials([string(credentialsId: '11c7e2b4-f990-4670-98a4-c89d2a5a2f43', variable: 'CROWDIN_API_KEY')]) { withEnv(['CROWDIN_BASE_PATH='+pwd()]) { - sh "$crowdin_cli upload sources --branch ${upstream_branch}" - // sh "$crowdin_cli upload translations --branch ${upstream_branch}" - sh "$crowdin_cli download --branch ${upstream_branch}" + sh "$crowdin_cli upload sources --branch ${upstream_branch} ${crowdin_cli_suffix}" + // sh "$crowdin_cli upload translations --branch ${upstream_branch} ${crowdin_cli_suffix}" + sh "$crowdin_cli download --branch ${upstream_branch} ${crowdin_cli_suffix}" } } sh 'LANG=C.UTF-8 find . -name "*.po" -exec msgfilter -i "{}" -o "{}.replacement" .ci/cleanup-po.pl ";"'