fix: handle special character ^
This commit is contained in:
parent
23d9bebaa7
commit
0af9ab4163
|
@ -282,6 +282,7 @@ def run_win_test() {
|
||||||
python -m pip install .
|
python -m pip install .
|
||||||
time /t
|
time /t
|
||||||
cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\community\\tests\\system-test
|
cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\community\\tests\\system-test
|
||||||
|
echo "node: ''' + linux_node_ip + ''':''' + inux_node_pass + '''"
|
||||||
echo "testing ..."
|
echo "testing ..."
|
||||||
test-all.bat "{\\\"host\\\":\\\"''' + linux_node_ip + '''\\\",\\\"port\\\":22,\\\"user\\\":\\\"root\\\",\\\"password\\\":\\\"''' + linux_node_pass + '''\\\",\\\"path\\\":\\\"/var/lib/jenkins/workspace/TDinternal\\\"}"
|
test-all.bat "{\\\"host\\\":\\\"''' + linux_node_ip + '''\\\",\\\"port\\\":22,\\\"user\\\":\\\"root\\\",\\\"password\\\":\\\"''' + linux_node_pass + '''\\\",\\\"path\\\":\\\"/var/lib/jenkins/workspace/TDinternal\\\"}"
|
||||||
time /t
|
time /t
|
||||||
|
@ -334,7 +335,7 @@ pipeline {
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
linux_node_pass = sh (
|
linux_node_pass = sh (
|
||||||
script: 'jq .password /home/node_info.json | sed "s/\\\"//g" |sed "s/\\!/^^^^\\!/g"',
|
script: 'jq .password /home/node_info.json | sed "s/\\\"//g" |sed "s/\\!/^^^^^^^^\\!/g"',
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
echo "${linux_node_ip}:${linux_node_pass}"
|
echo "${linux_node_ip}:${linux_node_pass}"
|
||||||
|
|
Loading…
Reference in New Issue