Summary
Class for writing issues to Azure DevOps pull requests.
- Namespace
- Cake
.AzureDevOps .Pipelines - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["AzureDevOpsBuild"]
class Type type-node
Syntax
public sealed class AzureDevOpsBuild
Constructors
| Name | Summary |
|---|---|
| AzureDevOpsBuild |
Initializes a new instance of the AzureDevOpsBuild class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| BuildId | int |
Gets the ID of the build.
Returns 0 if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| CollectionUrl | Uri |
Gets the URL for accessing the web portal of the Azure DevOps collection.
|
| FinishTime | DateTime? |
Gets the finish time of the build.
Returns
null if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| HasBuildLoaded | bool |
Gets a value indicating whether a build has been successfully loaded.
|
| Parameters | IDictionary |
Gets the parameters passed to the build.
Returns an empty dictionary if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| ProjectId | Guid |
Gets the id of the Azure DevOps project.
Returns
System.Guid.Empty if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| ProjectName | string |
Gets the name of the Azure DevOps project.
Returns empty string if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| RepositoryId | Guid |
Gets the ID of the repository.
Returns
System.Guid.Empty if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| RepositoryName | string |
Gets the name of the Git repository.
Returns
System.String.Empty if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| Result | Azure |
Gets the result of the build.
Returns 0 if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
| Status | Azure |
Gets the status of the build.
Returns 0 if no build could be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false.
|
Methods
| Name | Value | Summary |
|---|---|---|
| GetArtifacts |
IEnumerable |
Gets the artifacts associated with a build.
|
| GetChanges |
IEnumerable |
Gets the changes associated with a build.
|
| GetTestRuns |
IEnumerable |
Gets the test runs of the build including test results.
|
| GetTestRuns |
IEnumerable |
Gets the test runs of the build including test results.
|
| GetTimelineRecords |
IEnumerable |
Gets the timeline entries for a build.
|
| IsBuildFailing |
bool |
Checks if the build is failing.
|
| LinkArtifact |
Azure |
Create an artifact link, such as a file or folder path or a version control path.
|