阶段步骤新增接口

This commit is contained in:
moshenglv 2021-01-14 15:34:35 +08:00
parent 4ac7634031
commit a71f0b0550
1 changed files with 2 additions and 9 deletions

View File

@ -4386,13 +4386,13 @@ http://localhost:3000/api/ci/pipelines/1/2/steps.json | jq
#### 流水线阶段步骤新增/更新 #### 流水线阶段步骤新增/更新
``` ```
PUT /api/ci/pipelines/{id}/{stage_id}/stage_step POST /api/ci/pipelines/{id}/{stage_id}/stage_step
``` ```
*示例* *示例*
```bash ```bash
curl --location --request PUT 'http://localhost:3000/api/ci/pipelines/1/2/stage_step.json' \ curl --location --request POST 'http://localhost:3000/api/ci/pipelines/1/2/stage_step.json' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw ' {"steps":[{ --data-raw ' {"steps":[{
"id":7, "id":7,
@ -4400,13 +4400,6 @@ curl --location --request PUT 'http://localhost:3000/api/ci/pipelines/1/2/stage_
"show_index": 1, "show_index": 1,
"content": "xxxxxxxxxxx", "content": "xxxxxxxxxxx",
"template_id":2 "template_id":2
},
{
"id":8,
"step_name": "编译构建22-maven",
"show_index": 1,
"content": "xxxxxxxxxxx",
"template_id":2
} }
] ]
}' }'