tested also inside
node("node_name") {
print env.NODE_NAME
}
output:
Started by user anonymous <http://de3lxd-102859:8080/user/null>
Running: Allocate node : Start
Running on computer1 in /jenkins/workspace/Groovy_Test
Running: Allocate node : Body : Start
Running: Print Message
null
Running: Allocate node : Body : End
Running: Allocate node : End
Running: End of Workflow
Finished: SUCCESS
W dniu środa, 11 lutego 2015 12:08:29 UTC+1 użytkownik Arek Skalski napisał:
>
> *groovy script:*
>
> print env.NODE_NAME
>
> *output*:
>
> Started by user anonymous <http://de3lxd-102859:8080/user/null>
> Running: Print Message
> null
> Running: End of Workflow
> Finished: SUCCESS
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/22ff0de5-7b1f-461d-be3f-196298c6f119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.