From 362db1d0c178c8881b0d18455d08f84776df7631 Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Thu, 2 Jun 2022 09:14:01 +0800 Subject: [PATCH] fix: add escape character to fix syntax error --- Jenkinsfile2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 47afe43a89..1226462570 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -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() } -- GitLab