BuildMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Data model for the Build metadata.
public ref class BuildMetadata
public class BuildMetadata
type BuildMetadata = class
Public Class BuildMetadata
- Inheritance
-
BuildMetadata
Remarks
The values are automatically grabbed from environment variables at build time in CI pipeline and saved in generated code. At startup time, the class properties will be initialized from the generated code. Currently supported CI pipelines:
Constructors
| Name | Description |
|---|---|
| BuildMetadata() | |
Properties
| Name | Description |
|---|---|
| BuildId |
Gets or sets the ID of the record for the build, also known as the run ID. |
| BuildNumber |
Gets or sets the name of the completed build, also known as the run number. |
| SourceBranchName |
Gets or sets the name of the branch in the triggering repo the build was queued for, also known as the ref name. |
| SourceVersion |
Gets or sets the latest version control change that is included in this build, also known as the commit SHA. |