查看构建状态信息
Request method/request path
GET /ms/openapi/api/apigw/v3/projects/{projectId}/pipelines/{pipelineId}/builds/{buildId}/status
Resource description
View the build status
Input parameter description
Query parameter
Parameter name | Parameter type | must | Parameter description | Default value |
---|---|---|---|---|
channelCode | string | no | Channel number. The default is BS |
Path parameter
Parameter name | Parameter type | must | Parameter description | Default value |
---|---|---|---|---|
projectId | string | is | Item ID | |
pipelineId | string | is | Pipeline ID | |
buildId | string | is | Build ID |
response
HTTP code | description | Parameter type |
---|---|---|
200 | successful operation |
Request sample
HEADER example
Return example -200
The data is returned to the wrapper model with the historical build model with build variables
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
data | no | data | |
message | string | no | Error message |
status | integer | is | Status code |
Historical construction model with construction variables
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
buildNum | integer | is | Build number |
buildNumAlias | string | no | Customize the build version number |
stageStatus | is | Stage state | |
remark | string | no | remarks |
buildMsg | string | no | Construction information |
startTime | integer | is | Start time |
id | string | is | Build ID |
recommendVersion | string | no | Recommended version number |
retry | boolean | no | Retry or not |
variables | object | is | Construct a set of variables |
totalTime | integer | no | Total time (seconds) |
webHookType | string | no | WebHookType |
mobileStart | boolean | no | mobileStart |
startType | string | no | Startup type (New) |
trigger | string | is | Trigger condition |
userId | string | is | Startup user |
deleteReason | string | is | End reason |
queueTime | integer | no | Queue up |
pipelineVersion | integer | is | Choreograph file version number |
buildParameters | List< Build model-build parameters > | no | Startup parameter |
material | List<PipelineBuildMaterial> | no | Raw material |
currentTimestamp | integer | is | Current server timestamp |
artifactList | no | Component list | |
endTime | integer | is | End time |
webhookInfo | no | webhookInfo | |
errorInfoList | List< plug-in error message > | no | Pipelined task execution error |
status | string | is | state |
executeTime | integer | no | Running time (seconds, not including manual review time) |
Historical construction phase state
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
name | string | is | Stage name |
stageId | string | is | Phase ID |
Build model - Build parameters
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
valueType | ENUM(STRING, TEXTAREA, ENUM, DATE, LONG, BOOLEAN, SVN_TAG, GIT_REF, MULTIPLE, CODE_LIB, CONTAINER_TYPE, ARTIFACTORY, SUB_PIPELINE, CUSTOM_FILE, PASSWORD, TEMPORARY, ) | no | Element value type |
readOnly | boolean | no | Whether to read only |
value | object | is | Element value Name - for display |
key | string | is | Element value ID- identifier |
PipelineBuildMaterial
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
newCommitId | string | no | newCommitId |
aliasName | string | no | aliasName |
commitTimes | integer | no | commitTimes |
branchName | string | no | branchName |
url | string | no | url |
newCommitComment | string | no | newCommitComment |
Version repository - File information
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
fullPath | string | is | Full file path |
modifiedTime | integer | is | Update time |
appVersion | string | is | app version |
shortUrl | string | is | Download short link |
downloadUrl | string | no | Download link |
fullName | string | is | Full name of document |
path | string | is | File path |
folder | boolean | is | Yes folder |
size | integer | is | File size (byte) |
name | string | is | File name |
artifactoryType | ENUM(PIPELINE, CUSTOM_DIR, ) | is | Warehouse type |
properties | List< version repository - metadata > | is | metadata |
md5 | string | no | MD5 |
Version Repository - Metadata
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
value | string | is | Metadata value |
key | string | is | Metadata key |
WebhookInfo
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
webhookBranch | string | no | webhookBranch |
webhookEventType | string | no | webhookEventType |
webhookMessage | string | no | webhookMessage |
webhookMergeCommitSha | string | no | webhookMergeCommitSha |
webhookRepoUrl | string | no | webhookRepoUrl |
webhookCommitId | string | no | webhookCommitId |
webhookType | string | no | webhookType |
Plug-in error message
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
atomCode | string | no | Plug-in number |
errorType | integer | no | Error type |
errorCode | integer | is | Error code |
taskName | string | no | Plug-in name |
taskId | string | no | Plug-in ID |
errorMsg | string | no | Error message |
Last updated