Commit 32363224 authored by daidekun's avatar daidekun

tmp.json

parent d7acad0f
...@@ -67,7 +67,8 @@ def jsonParse(def json) { ...@@ -67,7 +67,8 @@ def jsonParse(def json) {
def build_nodejs_and_ui(namespace, systemName, contextDir, repoName, branchName) { def build_nodejs_and_ui(namespace, systemName, contextDir, repoName, branchName) {
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}" response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
//def jsonSlurper = new JsonSlurper() //def jsonSlurper = new JsonSlurper()
def res_json = jsonParse(readFile(response.content)) sh "${response} > tmp.json"
def res_json = jsonParse(readFile("./tmp.json"))
//def res_json = jsonSlurper.parseText(response.content) //def res_json = jsonSlurper.parseText(response.content)
print "=====Build Command Is=====" print "=====Build Command Is====="
configPath = res_json["configPath"] configPath = res_json["configPath"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment