From 488e8773e3d12d935e50058ff8b59b1a89be7592 Mon Sep 17 00:00:00 2001 From: Jos Ahrens Date: Sat, 16 Jun 2018 13:42:17 +0200 Subject: [PATCH] ci: return output of shell commands to stdout Ref #1562 --- .ci/Jenkinsfile.crowdin | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci/Jenkinsfile.crowdin b/.ci/Jenkinsfile.crowdin index d0fdbb2d..6dbbc0a8 100644 --- a/.ci/Jenkinsfile.crowdin +++ b/.ci/Jenkinsfile.crowdin @@ -53,8 +53,11 @@ timestamps { sh 'git config user.name "ZNC-Jenkins"' sh 'git config user.email jenkins@znc.in' sh 'git status' - def gitStatusShort = sh 'git status --short' - def modifiedLocales = sh 'git status --short | grep -o -E "[^ ]+\\.po$" | sed "s/.po//g" | grep -o -E "[a-z]{2}_[A-Z]{2}$" | sort -u | tr "\\n" " " | sed -E "s/ $//"' + def gitStatusShort = sh (script: 'git status --short', returnStdout: true) + def modifiedLocales = sh ( + script: 'git status --short | grep -o -E "[^ ]+\\.po$" | sed "s/.po//g" | grep -o -E "[a-z]{2}_[A-Z]{2}$" | sort -u | tr "\\n" " " | sed -E "s/ $//"', + returnStdout: true + ) sh 'git add .' try { sh 'git commit -m "Update translations from Crowdin"'