]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Escape backslashes in printenv/sort/tr
authorGeorge Joseph <gjoseph@digium.com>
Thu, 8 Aug 2019 17:10:11 +0000 (11:10 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 8 Aug 2019 17:16:59 +0000 (11:16 -0600)
Change-Id: I52be64c8f6af2bbe15148a856d1f10cb113e1e94

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile
tests/CI/unittests.jenkinsfile

index e1356564525589d96a822766d293cffe44487593..c065dd9774bec5a02768c9b1bd152b02336d4fac 100644 (file)
@@ -100,7 +100,7 @@ pipeline {
                                                withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
                                                        passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {
 
-                                                       sh "printenv -0 | sort -z | tr '\0' '\n'"
+                                                       sh "printenv -0 | sort -z | tr '\\0' '\\n'"
 
                                                        checkout scm: [$class: 'GitSCM',
                                                                branches: [[name: env.GERRIT_BRANCH ]],
index 1dba606e7046336f6d23cc7f6399f98cb1582fae..42b4615c4a10286f6bc2beb7e862ce2a4f54eb52 100644 (file)
@@ -43,7 +43,7 @@ pipeline {
 
                                        stage ("Checkout") {
                                                sh "sudo chown -R jenkins:users ."
-                                               sh "printenv -0 | sort -z | tr '\0' '\n'"
+                                               sh "printenv -0 | sort -z | tr '\\0' '\\n'"
                                                sh "sudo tests/CI/setupJenkinsEnvironment.sh"
                                        }
 
index 82ace49246e66b641e28565f11db852738c2090d..d314bbd218639b2ccfe8f54f4833b78d845b1e0b 100644 (file)
@@ -43,7 +43,7 @@ pipeline {
 
                                        stage ("Checkout") {
                                                sh "sudo chown -R jenkins:users ."
-                                               sh "printenv -0 | sort -z | tr '\0' '\n'"
+                                               sh "printenv -0 | sort -z | tr '\\0' '\\n'"
                                                sh "sudo tests/CI/setupJenkinsEnvironment.sh"
                                        }
 
index 793d634374d153918d139483fa34c237ae9e9688..f868723598055a5bad0f84a6795a1af53c941af2 100644 (file)
@@ -100,7 +100,7 @@ pipeline {
                                                withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
                                                        passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {
 
-                                                       sh "printenv -0 | sort -z | tr '\0' '\n'"
+                                                       sh "printenv -0 | sort -z | tr '\\0' '\\n'"
 
                                                        checkout scm: [$class: 'GitSCM',
                                                                branches: [[name: env.GERRIT_BRANCH ]],