Summary
Gets Bitrise build information.
- Namespace
- Cake
.Common .Build .Bitrise .Data - Containing Type
- Bitrise
Environment Info
Syntax
public BitriseBuildInfo Build { get; }
Examples
if (BuildSystem.Bitrise.IsRunningOnBitrise)
{
Information(
@"Build:
Build Number: {0}
Build Url: {1}
Build Slug: {2}
Build Trigger Timestamp: {3}
Build Status: {4}",
BuildSystem.Bitrise.Environment.Build.BuildNumber,
BuildSystem.Bitrise.Environment.Build.BuildUrl,
BuildSystem.Bitrise.Environment.Build.BuildSlug,
BuildSystem.Bitrise.Environment.Build.BuildTriggerTimestamp,
BuildSystem.Bitrise.Environment.Build.BuildStatus
);
}
else
{
Information("Not running on Bitrise");
}
if (Bitrise.IsRunningOnBitrise)
{
Information(
@"Build:
Build Number: {0}
Build Url: {1}
Build Slug: {2}
Build Trigger Timestamp: {3}
Build Status: {4}",
Bitrise.Environment.Build.BuildNumber,
Bitrise.Environment.Build.BuildUrl,
Bitrise.Environment.Build.BuildSlug,
Bitrise.Environment.Build.BuildTriggerTimestamp,
Bitrise.Environment.Build.BuildStatus
);
}
else
{
Information("Not running on Bitrise");
}
Value
Type | Description |
---|---|
BitriseBuildInfo | The build. |