Summary
Gets RWX task information for the current build.
- Namespace
- Cake
.Common .Build .Rwx .Data - Containing Type
- RwxEnvironmentInfo
Syntax
public RwxTaskInfo Task { get; }
Examples
if (BuildSystem.Rwx.IsRunningOnRwx)
{
Information(
@"Task:
Id: {0}
Url: {1}
AttemptNumber: {2}",
BuildSystem.Rwx.Environment.Task.Id,
BuildSystem.Rwx.Environment.Task.Url,
BuildSystem.Rwx.Environment.Task.AttemptNumber
);
}
else
{
Information("Not running on RWX");
}
if (Rwx.IsRunningOnRwx)
{
Information(
@"Task:
Id: {0}
Url: {1}
AttemptNumber: {2}",
Rwx.Environment.Task.Id,
Rwx.Environment.Task.Url,
Rwx.Environment.Task.AttemptNumber
);
}
else
{
Information("Not running on RWX");
}
Value
| Type | Description |
|---|---|
| RwxTaskInfo | The task. |
