JenkinsEnvironmentInfo.

JenkinsUrl Property

Summary

Gets the full URL of Jenkins (note: only available if Jenkins URL is set in system configuration).

Syntax

public string JenkinsUrl { get; }

Examples

if (BuildSystem.Jenkins.IsRunningOnJenkins)
{
    Information(
        @"JenkinsUrl: {0}",
        BuildSystem.Jenkins.Environment.JenkinsUrl
        );
}
else
{
    Information("Not running on Jenkins");
}
if (Jenkins.IsRunningOnJenkins)
{
    Information(
        @"JenkinsUrl: {0}",
        Jenkins.Environment.JenkinsUrl
        );
}
else
{
    Information("Not running on Jenkins");
}

Value

Type Description
string The full URL of Jenkins.