停止构建

Request method/request path

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

Resource description

Stop building

Input parameter description

Query parameter

Parameter nameParameter typemustParameter descriptionDefault value

channelCode

string

no

Channel number. The default is BS

Path parameter

Parameter nameParameter typemustParameter descriptionDefault value

projectId

string

is

Item ID

pipelineId

string

is

Pipeline ID

buildId

string

is

Build ID

response

HTTP codedescriptionParameter type

200

successful operation

Request sample

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

HEADER example

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

Return example -200

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

Data return wrapper model Boolean

Parameter nameParameter typemustParameter description

data

boolean

no

data

message

string

no

Error message

status

integer

is

Status code

Last updated