JenkinsEnvironmentInfo.

Change Property

Summary

Gets the change.

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.