JenkinsEnvironmentInfo.

JenkinsHome Property

Summary

Gets the absolute path of the directory assigned on the master node for Jenkins to store data.

Syntax

public string JenkinsHome { get; }

Examples

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

Value

Type Description
string The absolute path of the directory assigned on the master node for Jenkins to store data.