Timeline - Get
Gets details for a build
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/timeline/{timelineId}?api-version=7.1
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/timeline/{timelineId}?changeId={changeId}&planId={planId}&api-version=7.1
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
build
|
path | True |
integer (int32) |
|
|
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
|
project
|
path | True |
string |
Project ID or project name |
|
timeline
|
path |
string (uuid) |
||
|
api-version
|
query | True |
string |
Version of the API to use. This should be set to '7.1' to use this version of the api. |
|
change
|
query |
integer (int32) |
||
|
plan
|
query |
string (uuid) |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
successful operation |
Security
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
| Name | Description |
|---|---|
| vso.build | Grants the ability to access build artifacts, including build results, definitions, and requests, and the ability to receive notifications about build events via service hooks. |
Definitions
| Name | Description |
|---|---|
|
Build |
Represents a reference to a build log. |
| Issue |
Represents an issue (error, warning) associated with a build. |
|
Issue |
The type (error, warning) of the issue. |
|
Reference |
The class to represent a collection of REST reference links. |
|
Task |
Represents a reference to a task. |
|
Task |
The result. |
| Timeline |
Represents the timeline of a build. |
|
Timeline |
|
|
Timeline |
Represents an entry in a build's timeline. |
|
Timeline |
The state of the record. |
|
Timeline |
Represents a reference to a timeline. |
BuildLogReference
Represents a reference to a build log.
| Name | Type | Description |
|---|---|---|
| id |
integer (int32) |
The ID of the log. |
| type |
string |
The type of the log location. |
| url |
string |
A full link to the log resource. |
Issue
Represents an issue (error, warning) associated with a build.
| Name | Type | Description |
|---|---|---|
| category |
string |
The category. |
| data |
object |
|
| message |
string |
A description of the issue. |
| type |
The type (error, warning) of the issue. |
IssueType
The type (error, warning) of the issue.
| Value | Description |
|---|---|
| error | |
| warning |
ReferenceLinks
The class to represent a collection of REST reference links.
| Name | Type | Description |
|---|---|---|
| links |
object |
The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. |
TaskReference
Represents a reference to a task.
| Name | Type | Description |
|---|---|---|
| id |
string (uuid) |
The ID of the task definition. |
| name |
string |
The name of the task definition. |
| version |
string |
The version of the task definition. |
TaskResult
The result.
| Value | Description |
|---|---|
| succeeded | |
| succeededWithIssues | |
| failed | |
| canceled | |
| skipped | |
| abandoned |
Timeline
Represents the timeline of a build.
| Name | Type | Description |
|---|---|---|
| changeId |
integer (int32) |
The change ID. |
| id |
string (uuid) |
The ID of the timeline. |
| lastChangedBy |
string (uuid) |
The process or person that last changed the timeline. |
| lastChangedOn |
string (date-time) |
The time the timeline was last changed. |
| records |
Represents an entry in a build's timeline. |
|
| url |
string |
The REST URL of the timeline. |
TimelineAttempt
| Name | Type | Description |
|---|---|---|
| attempt |
integer (int32) |
Gets or sets the attempt of the record. |
| recordId |
string (uuid) |
Gets or sets the record identifier located within the specified timeline. |
| timelineId |
string (uuid) |
Gets or sets the timeline identifier which owns the record representing this attempt. |
TimelineRecord
Represents an entry in a build's timeline.
| Name | Type | Description |
|---|---|---|
| _links |
The class to represent a collection of REST reference links. |
|
| attempt |
integer (int32) |
Attempt number of record. |
| changeId |
integer (int32) |
The change ID. |
| currentOperation |
string |
A string that indicates the current operation. |
| details |
A reference to a sub-timeline. |
|
| errorCount |
integer (int32) |
The number of errors produced by this operation. |
| finishTime |
string (date-time) |
The finish time. |
| id |
string (uuid) |
The ID of the record. |
| identifier |
string |
String identifier that is consistent across attempts. |
| issues |
Issue[] |
Represents an issue (error, warning) associated with a build. |
| lastModified |
string (date-time) |
The time the record was last modified. |
| log |
A reference to the log produced by this operation. |
|
| name |
string |
The name. |
| order |
integer (int32) |
An ordinal value relative to other records. |
| parentId |
string (uuid) |
The ID of the record's parent. |
| percentComplete |
integer (int32) |
The current completion percentage. |
| previousAttempts | ||
| queueId |
integer (int32) |
The queue ID of the queue that the operation ran on. |
| result |
The result. |
|
| resultCode |
string |
The result code. |
| startTime |
string (date-time) |
The start time. |
| state |
The state of the record. |
|
| task |
A reference to the task represented by this timeline record. |
|
| type |
string |
The type of the record. |
| url |
string |
The REST URL of the timeline record. |
| warningCount |
integer (int32) |
The number of warnings produced by this operation. |
| workerName |
string |
The name of the agent running the operation. |
TimelineRecordState
The state of the record.
| Value | Description |
|---|---|
| pending | |
| inProgress | |
| completed |
TimelineReference
Represents a reference to a timeline.
| Name | Type | Description |
|---|---|---|
| changeId |
integer (int32) |
The change ID. |
| id |
string (uuid) |
The ID of the timeline. |
| url |
string |
The REST URL of the timeline. |