Summary
Gets the node.
- Namespace
- Cake
.Common .Build .Jenkins .Data - Containing Type
- Jenkins
Environment Info
Syntax
public JenkinsNodeInfo Node { get; }
Examples
if (BuildSystem.Jenkins.IsRunningOnJenkins)
{
Information(
@"Node:
NodeName: {0}
NodeLabels: {1}",
BuildSystem.Jenkins.Environment.Node.NodeName,
BuildSystem.Jenkins.Environment.Node.NodeLabels
);
}
else
{
Information("Not running on Jenkins");
}
if (Jenkins.IsRunningOnJenkins)
{
Information(
@"Node:
NodeName: {0}
NodeLabels: {1}",
Jenkins.Environment.Node.NodeName,
Jenkins.Environment.Node.NodeLabels
);
}
else
{
Information("Not running on Jenkins");
}
Value
Type | Description |
---|---|
JenkinsNodeInfo | The node. |