Commit 36878aa0 authored by kalvin's avatar kalvin

fixbugs

parent 3024b654
......@@ -295,9 +295,7 @@ def project_attr(systemName) {
def update_microservice(namespace, name, image, tier) {
dest_url = "http://192.168.4.24/api/qahome/update_microservice"
def slurper = new JsonSlurper()
def j = slurper.parseText('{"person":{"namespace":' + namespace + ',"name":' + name + ',"image":'+ image +', tier:' + tier )
j = readJSON text:'{"person":{"namespace":' + namespace + ',"name":' + name + ',"image":'+ image +', tier:' + tier
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