Documentation for Gathering a Build Log via the API is missing
Summary
Documentation to gather the log/trace for a build is currently missing
Fix Proposed
Documentation for the /projects/:id/build/:build_id/trace
action should be provided in the API/Builds documentation
Additional Detail
The action discussed:
Documentation Proposed
Get a trace file
Get a trace of a specific build of a project
GET /projects/:id/builds/:build_id/trace
Attribute | Type | Required | Description |
---|---|---|---|
id | integer | yes | The ID of a project |
build_id | integer | yes | The ID of a build |
curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8/trace"
Response:
Status | Description |
---|---|
200 | Serves the trace file |
404 | Build not found or no trace file |