Summary
Gets the full URL of Jenkins (note: only available if Jenkins URL is set in system configuration).
- Namespace
- Cake
.Common .Build .Jenkins .Data - Containing Type
- Jenkins
Environment Info
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. |