ci: return output of shell commands to stdout

Ref #1562
This commit is contained in:
Jos Ahrens
2018-06-16 13:42:17 +02:00
parent 6f109ec6d7
commit 488e8773e3
+5 -2
View File
@@ -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"'