Summary
Gets the change.
- Namespace
- Cake
.Common .Build .Jenkins .Data - Containing Type
- Jenkins
Environment Info
Syntax
public JenkinsChangeInfo Change { get; }
Examples
if (BuildSystem.Jenkins.IsRunningOnJenkins)
{
Information(
@"Change:
Id: {0}
Url: {1}
Title: {2}",
BuildSystem.Jenkins.Environment.Change.Id,
BuildSystem.Jenkins.Environment.Change.Url,
BuildSystem.Jenkins.Environment.Change.Title
);
}
else
{
Information("Not running on Jenkins");
}
if (Jenkins.IsRunningOnJenkins)
{
Information(
@"Change:
Id: {0}
Url: {1}
Title: {2}",
Jenkins.Environment.Change.Id,
Jenkins.Environment.Change.Url,
Jenkins.Environment.Change.Title
);
}
else
{
Information("Not running on Jenkins");
}
Value
Type | Description |
---|---|
JenkinsChangeInfo | The change. |