Commit 2fad2b60 authored by kalvin's avatar kalvin

debug

parent 11728710
......@@ -295,7 +295,11 @@ def project_attr(systemName) {
def update_microservice(namespace, name, image, tier) {
dest_url = "http://192.168.4.24/api/qahome/update_microservice"
j = readJSON text:'{"person":{"namespace":' + namespace + ',"name":' + name + ',"image":'+ image +',"tier":' + tier + '}'
json_str = '{"person":{"namespace":' + namespace + ',"name":' + name + ',"image":'+ image +',"tier":' + tier + '}'
echo json_str
j = readJSON text:json_str
response = httpRequest contentType: "APPLICATION_JSON", httpMode: "PUT", requestBody: JsonOutput.toJson(j), url: dest_url
def res_json = jsonParse(response.content)
return res_json
......
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