]> 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:15:26 +0000 (12:15 -0500)
Change-Id: I52be64c8f6af2bbe15148a856d1f10cb113e1e94
(cherry picked from commit c6558e09af3ac15b31377de735cc96d8df0275a7)

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

index 219abb0cc6ffb53613253cfc6dcd8f4ff1234e64..82ef3434989bba5db46ab634a468e26304cfad18 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 ce10209fb7177d8e8ab7e4c256fa8ab4ca1c8f24..352737fd1d93c25529dba5f6485cb077462e3560 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 5c4f4873fe8d63396b2fd5921aa6df13517a7966..a87f7dce64d7ea28b32ec7ba998d8ff0981f5ed3 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 7a5cd4ad6df0e5b966257bfedcf1551f36f8ed13..6f81479c6645eef174f7e9e16f2cf054069653c1 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 ]],