mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
CI: Escape backslashes in printenv/sort/tr
Change-Id: I52be64c8f6af2bbe15148a856d1f10cb113e1e94
This commit is contained in:
@@ -100,7 +100,7 @@ pipeline {
|
|||||||
withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
|
withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
|
||||||
passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {
|
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',
|
checkout scm: [$class: 'GitSCM',
|
||||||
branches: [[name: env.GERRIT_BRANCH ]],
|
branches: [[name: env.GERRIT_BRANCH ]],
|
||||||
|
@@ -43,7 +43,7 @@ pipeline {
|
|||||||
|
|
||||||
stage ("Checkout") {
|
stage ("Checkout") {
|
||||||
sh "sudo chown -R jenkins:users ."
|
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"
|
sh "sudo tests/CI/setupJenkinsEnvironment.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ pipeline {
|
|||||||
|
|
||||||
stage ("Checkout") {
|
stage ("Checkout") {
|
||||||
sh "sudo chown -R jenkins:users ."
|
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"
|
sh "sudo tests/CI/setupJenkinsEnvironment.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -100,7 +100,7 @@ pipeline {
|
|||||||
withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
|
withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
|
||||||
passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {
|
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',
|
checkout scm: [$class: 'GitSCM',
|
||||||
branches: [[name: env.GERRIT_BRANCH ]],
|
branches: [[name: env.GERRIT_BRANCH ]],
|
||||||
|
Reference in New Issue
Block a user