Summary
Gets Jenkins job information.
- Namespace
- Cake
.Common .Build .Jenkins .Data - Containing Type
- Jenkins
Environment Info
Syntax
public JenkinsJobInfo Job { get; }
Examples
if (BuildSystem.Jenkins.IsRunningOnJenkins)
{
Information(
@"Job:
JobName: {0}
JobBaseName: {1}
JobUrl: {2}",
BuildSystem.Jenkins.Environment.Job.JobName,
BuildSystem.Jenkins.Environment.Job.JobBaseName,
BuildSystem.Jenkins.Environment.Job.JobUrl
);
}
else
{
Information("Not running on Jenkins");
}
if (Jenkins.IsRunningOnJenkins)
{
Information(
@"Job:
JobName: {0}
JobBaseName: {1}
JobUrl: {2}",
Jenkins.Environment.Job.JobName,
Jenkins.Environment.Job.JobBaseName,
Jenkins.Environment.Job.JobUrl
);
}
else
{
Information("Not running on Jenkins");
}
Value
Type | Description |
---|---|
JenkinsJobInfo | The job. |