mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Merge pull request #1569 from Zarthus/jenkins/trans/pr-summary
ci: return output of shell commands to stdout
This commit is contained in:
@@ -53,11 +53,14 @@ 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"'
|
||||
sh 'git commit -m "Update translations from Crowdin for ' + modifiedLocales + '"'
|
||||
} catch(e) {
|
||||
echo 'No changes found'
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user