流水线 CODEARTS PIPELINE-获取流水线状态:响应示例

时间:2023-11-28 18:59:45

响应示例

状态码: 200

OK

{
  "executor" : null,
  "status" : null,
  "outcome" : null,
  "pipeline_id" : "75c562a081574ff28224fb2c123a0643",
  "pipeline_name" : "pipeline-1185523_Cx2Ur",
  "build_id" : null,
  "start_time" : "2022-04-01 19:44:16",
  "end_time" : null,
  "elapsed_time" : null,
  "detail_url" : "https://xxx",
  "parameters" : [ {
    "name" : "seviceName",
    "value" : "pipeline-23"
  }, {
    "name" : "codeBranch",
    "value" : "master"
  } ],
  "states" : [ {
    "id" : "state_4",
    "name" : "构建",
    "type" : "stage",
    "status" : null,
    "outcome" : null,
    "children" : [ {
      "id" : "Task_1",
      "name" : "人工审核",
      "type" : "task",
      "status" : null,
      "outcome" : null,
      "start_time" : null,
      "end_time\"" : null,
      "elapsed_time" : null,
      "error_code" : null,
      "error_msg" : null,
      "detail_url" : null
    } ],
    "start_time" : null,
    "end_time" : null,
    "elapsed_time" : null
  } ]
}
support.huaweicloud.com/api-pipeline/ShowPipelineStatus.html