Summary
Gets Travis CI job information for the current build.
- Namespace
- Cake
.Common .Build .TravisCI .Data - Containing Type
- Travis
C I Environment Info
Syntax
public TravisCIJobInfo Job { get; }
Examples
if (BuildSystem.TravisCI.IsRunningOnTravisCI)
{
Information(
@"Job:
JobId: {0}
JobNumber: {1}
OSName: {2}",
BuildSystem.TravisCI.Environment.Job.JobId,
BuildSystem.TravisCI.Environment.Job.JobNumber,
BuildSystem.TravisCI.Environment.Job.OSName
);
}
else
{
Information("Not running on TravisCI");
}
if (TravisCI.IsRunningOnTravisCI)
{
Information(
@"Job:
JobId: {0}
JobNumber: {1}
OSName: {2}",
TravisCI.Environment.Job.JobId,
TravisCI.Environment.Job.JobNumber,
TravisCI.Environment.Job.OSName
);
}
else
{
Information("Not running on TravisCI");
}
Value
Type | Description |
---|---|
TravisCIJobInfo | The job. |