操作暂停插件

请求方法/请求路径

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

资源描述

操作暂停插件

输入参数说明

Body参数

参数名称参数类型必须参数说明默认值

body

Path参数

参数名称参数类型必须参数说明默认值

projectId

string

项目ID

pipelineId

string

流水线ID

buildId

string

构建ID

响应

HTTP代码说明参数类型

200

successful operation

请求样例

curl -X POST '[请替换为API地址栏请求地址]' \
-H 'X-DEVOPS-UID:xxx'

HEADER样例

accept: application/json
Content-Type: application/json
X-DEVOPS-UID:xxx

返回样例-200

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

流水线暂停操作实体类

参数名称参数类型必须参数说明

continue

boolean

continue

containerId

string

当前containerId

taskId

string

任务ID

element

element信息,若插件内有变量变更需给出变更后的element

stageId

string

当前stageId

Element

参数名称参数类型必须参数说明

canRetry

boolean

canRetry

errorType

string

errorType

errorCode

integer

errorCode

canSkip

boolean

canSkip

startEpoch

integer

startEpoch

version

string

version

executeCount

integer

executeCount

templateModify

boolean

templateModify

elementEnable

boolean

elementEnable

errorMsg

string

errorMsg

elapsed

integer

elapsed

atomCode

string

atomCode

additionalOptions

additionalOptions

taskAtom

string

taskAtom

name

string

name

id

string

id

classType

string

classType

status

string

status

ElementAdditionalOptions

参数名称参数类型必须参数说明

enableCustomEnv

boolean

enableCustomEnv

continueWhenFailed

boolean

continueWhenFailed

manualRetry

boolean

manualRetry

pauseBeforeExec

boolean

pauseBeforeExec

retryCount

integer

retryCount

manualSkip

boolean

manualSkip

timeout

integer

timeout

customVariables

customVariables

otherTask

string

otherTask

customEnv

customEnv

retryWhenFailed

boolean

retryWhenFailed

enable

boolean

enable

subscriptionPauseUser

string

subscriptionPauseUser

customCondition

string

customCondition

runCondition

ENUM(PRE_TASK_SUCCESS, PRE_TASK_FAILED_BUT_CANCEL, PRE_TASK_FAILED_EVEN_CANCEL, PRE_TASK_FAILED_ONLY, OTHER_TASK_RUNNING, CUSTOM_VARIABLE_MATCH, CUSTOM_VARIABLE_MATCH_NOT_RUN, CUSTOM_CONDITION_MATCH, PARENT_TASK_CANCELED_OR_TIMEOUT, PARENT_TASK_FINISH, )

runCondition

elementPostInfo

elementPostInfo

NameAndValue

参数名称参数类型必须参数说明

value

string

value

key

string

key

元素post信息

参数名称参数类型必须参数说明

parentElementId

string

父元素ID

postCondition

string

执行条件

parentElementJobIndex

integer

父元素在job中的位置

parentElementName

string

父元素名称

postEntryParam

string

入口参数

数据返回包装模型Boolean

参数名称参数类型必须参数说明

data

boolean

数据

message

string

错误信息

status

integer

状态码

最后更新于