Summary
Gets RWX runtime information for the current build. Exposes the
filesystem locations RWX uses for runtime-written output values and
artifacts. Available inside any task running on RWX.
- Namespace
- Cake
.Common .Build .Rwx .Data - Containing Type
- RwxEnvironmentInfo
Syntax
public RwxRuntimeInfo Runtime { get; }
Examples
if (BuildSystem.Rwx.IsRunningOnRwx)
{
Information(
@"Runtime:
ValuesPath: {0}
ArtifactsPath: {1}",
BuildSystem.Rwx.Environment.Runtime.ValuesPath,
BuildSystem.Rwx.Environment.Runtime.ArtifactsPath
);
}
else
{
Information("Not running on RWX");
}
if (Rwx.IsRunningOnRwx)
{
Information(
@"Runtime:
ValuesPath: {0}
ArtifactsPath: {1}",
Rwx.Environment.Runtime.ValuesPath,
Rwx.Environment.Runtime.ArtifactsPath
);
}
else
{
Information("Not running on RWX");
}
Value
| Type | Description |
|---|---|
| RwxRuntimeInfo | The runtime information. |
