Authorization: Bearer ********************
{
"name": "unit-test",
"identifier": "131",
"job_url": "https://your-job-url",
"provider": "jenkins",
"result_overview": "1000 test cases pass",
"result_url": "https://your-result-url",
"start_at": 1583290309,
"end_at": 1583290347,
"duration": 38,
"status": "success",
"work_item_identifiers": [
"PLM-001"
]
}
curl --location -g --request PUT 'https://open.pingcode.com/v1/build/builds/{{build_id}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "unit-test",
"identifier": "131",
"job_url": "https://your-job-url",
"provider": "jenkins",
"result_overview": "1000 test cases pass",
"result_url": "https://your-result-url",
"start_at": 1583290309,
"end_at": 1583290347,
"duration": 38,
"status": "success",
"work_item_identifiers": [
"PLM-001"
]
}'
{
"id": "564587fe700d43b81b080765",
"url": "https://rest_api_root/v1/build/builds/564587fe700d43b81b080765",
"identifier": "131",
"name": "unit-test",
"job_url": "https://your-job-url",
"provider": "jenkins",
"result_overview": "1000 test cases pass",
"result_url": "https://your-result-url",
"start_at": 1583290309,
"status": "success",
"end_at": 1583290347,
"duration": 38,
"work_items": [
{
"id": "564587fe700d43b81b080ab8",
"url": "https://rest_api_root/v1/project/work_items/564587fe700d43b81b080ab8",
"identifier": "PLM-001",
"title": "这是一个用户故事",
"type": "story",
"start_at": 1583290309,
"end_at": 1583290347,
"parent_id": "5edca524cad2fa112b06105c"
}
]
}