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

ffff

parent 58b93c21
......@@ -27,7 +27,7 @@ def sonaar_check(GIT_REPO_NAME,GIT_BRANCH,currentPath){
}
def callback_pipes(info) {
def callback_pipes(taskId) {
sleep 3
sonarInfo = sh (script: 'cat .sonar/report-task.txt |awk \'{printf $0 "&"}\'',returnStdout: true).trim()
......@@ -41,7 +41,7 @@ def callback_pipes(info) {
}
body =[:]
body["taskId"] = info["taskId"]
body["taskId"] = taskId
body["content"] = content
def bodyJson = JsonOutput.toJson(body)
......
......@@ -7,16 +7,9 @@ def call(body) {
def GIT_BRANCH = env.GIT_BRANCH
def GIT_BRANCH_HASH = env.GIT_BRANCH_HASH
def GIT_TRIGER_USER = env.GIT_TRIGER_USER
def PIPELINE_ID = env.PIPELINE_ID
def STAGE_INDEX = env.STAGE_INDEX
def TASK_INDEX = env.TASK_INDEX
def TASK_INDEX = env.TASK_ID
def info = [
pipline_id : PIPELINE_ID,
stage_index: STAGE_INDEX,
task_index: TASK_INDEX,
context:[]
]
def currentPath
......@@ -43,7 +36,7 @@ echo "\033[32m############################################\n\
}
stage("callback"){
_stage.callback_pipes(info)
_stage.callback_pipes(TASK_INDEX)
}
}
......
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