fix: add escape character to fix syntax error

This commit is contained in:
tangfangzhi 2022-06-02 09:14:01 +08:00
parent 4344e5499c
commit 362db1d0c1
1 changed files with 2 additions and 2 deletions

View File

@ -327,11 +327,11 @@ pipeline {
steps {
script {
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
).trim()
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
).trim()
}