Add param "ci_config_path" into pipeline api
What does this MR do and why?
Close #4320 (closed)
为 Create Pipeline API 增加新参数:ci_config_path
。
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
调用 API 创建 Pipeline,传递 ci_config_path
参数:
curl --location 'http://127.0.0.1:3000/api/v4/projects/7/pipeline' \
--header 'PRIVATE-TOKEN: YOUR-TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"ci_config_path": "https://jihulab.com/luzhiyuan.deer/public-note/-/raw/main/test2-gitlab.yml",
"ref": "master"
}'
由 路志远 编辑于