Commit cda0d537 authored by wentao.suo's avatar wentao.suo

ffff

parent 97693051
...@@ -39,17 +39,21 @@ def callback_pipes(info) { ...@@ -39,17 +39,21 @@ def callback_pipes(info) {
content[itemSplit[0]] =itemSplit[1] content[itemSplit[0]] =itemSplit[1]
} }
def contentJson = JsonOutput.toJson(content)
echo contentJson body =[:]
body["taskId"] = info["taskId"]
body["content"] = content
def bodyJson = JsonOutput.toJson(body)
echo bodyJson
dest_url = "http://mock.q-gp.com/ttttttttt"
dest_url = "http://192.168.28.141:8080/callback/ci/triger"
response = httpRequest httpMode:"POST", response = httpRequest httpMode:"POST",
consoleLogResponseBody:true, consoleLogResponseBody:true,
contentType:"APPLICATION_JSON", contentType:"APPLICATION_JSON",
requestBody:"""#{contentJson}""", requestBody:"${bodyJson}",
url:dest_url url:dest_url
def res_json = jsonParse(response.content) def res_json = jsonParse(response.content)
......
...@@ -43,7 +43,7 @@ echo "\033[32m############################################\n\ ...@@ -43,7 +43,7 @@ echo "\033[32m############################################\n\
} }
stage("callback"){ stage("callback"){
/* _stage.callback_pipes(info)*/ _stage.callback_pipes(info)
} }
} }
......
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