fix: add escape character to fix syntax error
This commit is contained in:
parent
4344e5499c
commit
362db1d0c1
|
@ -327,11 +327,11 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
linux_node_ip = sh (
|
linux_node_ip = sh (
|
||||||
script: 'jq .ip /home/node_info.json | sed "s/\"//g"',
|
script: 'jq .ip /home/node_info.json | sed "s/\\\"//g"',
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
linux_node_pass = sh (
|
linux_node_pass = sh (
|
||||||
script: 'jq .password /home/node_info.json | sed "s/\"//g"',
|
script: 'jq .password /home/node_info.json | sed "s/\\\"//g"',
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue