启动构建

Request method/request path

POST /ms/openapi/api/apigw/v3/projects/{projectId}/pipelines/{pipelineId}/builds/start

Resource description

Start build

Input parameter description

Query parameter

Parameter nameParameter typemustParameter descriptionDefault value

buildNo

integer

no

Manually specify build version parameters

channelCode

string

no

Channel number. The default is BS

Body parameter

Parameter nameParameter typemustParameter descriptionDefault value

body

map

is

Startup parameter

Path parameter

Parameter nameParameter typemustParameter descriptionDefault value

projectId

string

is

Item ID

pipelineId

string

is

Pipeline ID

response

HTTP codedescriptionParameter type

200

successful operation

Request sample

curl -X POST '[please replace API address bar request address]? buildNo={buildNo}&channelCode={channelCode}' 

HEADER example

accept: application/json Content-Type: application/json 

Return example -200

{  "data" : {  "id" : "String"  },  "message" : "String",  "status" : 0 } 

Data returns wrapper model build model-ID

Parameter nameParameter typemustParameter description

data

no

data

message

string

no

Error message

status

integer

is

Status code

Build model -ID

Parameter nameParameter typemustParameter description

id

string

is

Build ID

Last updated