From 0af9ab4163e4941bdda8587b1c7dfbe6d613fb08 Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Sat, 4 Jun 2022 10:44:50 +0800 Subject: [PATCH] fix: handle special character ^ --- Jenkinsfile2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 642a9d74f0..a4756a6daa 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -282,6 +282,7 @@ def run_win_test() { python -m pip install . time /t cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\community\\tests\\system-test + echo "node: ''' + linux_node_ip + ''':''' + inux_node_pass + '''" echo "testing ..." test-all.bat "{\\\"host\\\":\\\"''' + linux_node_ip + '''\\\",\\\"port\\\":22,\\\"user\\\":\\\"root\\\",\\\"password\\\":\\\"''' + linux_node_pass + '''\\\",\\\"path\\\":\\\"/var/lib/jenkins/workspace/TDinternal\\\"}" time /t @@ -334,7 +335,7 @@ pipeline { returnStdout: true ).trim() 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 ).trim() echo "${linux_node_ip}:${linux_node_pass}"