JenkinsEnvironmentInfo.

Node Property

Summary

Gets the node.

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.