{
"build": {
"code": "string",
"number": 0,
"status": "BuildStatusList",
"duration": 0,
"timestamp": 0,
"url": "string",
"log": "string",
"cause": {
"causeType": "string",
"userId": "string",
"userName": "string"
},
"repo": {
"type": "git",
"remoteUrl": "string",
"branch": {
"SHA1": "string",
"name": "string"
}
},
"changeSets": [
{
"type": "git",
"shaId": "string",
"htmlUrl": "string",
"msg": "string",
"timestamp": 0,
"user": {
"userId": "string",
"name": "string"
}
}
],
"stages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"subStages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"log": "string"
}
]
}
]
}
}
curl --location --request POST 'https://open.teambition.com/api/code/pipeline/platforms//pipelines//builds' \
--header 'X-Tenant-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Tenant-Type;' \
--header 'X-Tenant-Type;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"build": {
"code": "string",
"number": 0,
"status": "BuildStatusList",
"duration": 0,
"timestamp": 0,
"url": "string",
"log": "string",
"cause": {
"causeType": "string",
"userId": "string",
"userName": "string"
},
"repo": {
"type": "git",
"remoteUrl": "string",
"branch": {
"SHA1": "string",
"name": "string"
}
},
"changeSets": [
{
"type": "git",
"shaId": "string",
"htmlUrl": "string",
"msg": "string",
"timestamp": 0,
"user": {
"userId": "string",
"name": "string"
}
}
],
"stages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"subStages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"log": "string"
}
]
}
]
}
}'
{
"requestId": "dc8edff6-2ccd-4c4f-9c39-c13c87b8b93f",
"code": 200,
"errorMessage": "ok",
"result": {
"__v": 1,
"_id": "6537b3e6912d20d3b5bd4616",
"cause": {
"causeType": "user",
"userId": "6537b3e6912d20d3b5bd4607",
"userName": "狄纯1"
},
"changeSetIds": [
"65378965912d20d3b57eec6d"
],
"code": "test-csde-performance-api-1",
"counts": {
"commit": 1,
"task": 0
},
"createdAt": "2023-10-24T12:09:10.945Z",
"duration": 72000,
"inProgress": false,
"name": "1",
"number": 1,
"organizationId": "50c32afae8cf1439d35a87e6",
"pipelineId": "6537b3ad912d20d3b5bd1a26",
"repo": {
"branches": [
{
"SHA1": "ea49048392e8c90f9d91a91eec6166e69258677f",
"_id": "6537b3e6eacce1896077c9de",
"name": "master"
}
],
"remoteUrl": "https://codeup.aliyun.com/62650a04c2b7347ce520e7e4/background_service/PFM/csde-performance-api.git",
"type": "git"
},
"status": "passed",
"timestamp": 1695704788220,
"updatedAt": "2023-10-24T12:09:10.959Z",
"url": "https://flow.aliyun.com/pipelines/2610933/builds/5"
}
}