Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-25 Thread Jesse Glick
NODE_NAME is defined for AbstractBuild (freestyle, etc.), not Workflow currently. It could not be defined using the same system by which flow builds pick up general build variables (BUILD_URL) etc. because there is not a unique node for a flow build. You could open an RFE for ExecutorStepExecut

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-20 Thread Arek Skalski
Found a work around ('Linux node'). To actually get the node name I am using def nodeName = "hostname".execute().text.replace('\n', '') node name does not have to be equal to hostname, but the hostname is just enough for me so I could locilize the node I am currently using ;-) Cheers! W dni

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-12 Thread Slide
See https://issues.jenkins-ci.org/browse/JENKINS-19222 On Thu Feb 12 2015 at 5:24:05 AM Arek Skalski wrote: > I do have: > > Environment Injector Plugin > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group a

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-12 Thread Arek Skalski
I do have: Environment Injector Plugin -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion o

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-11 Thread Slide
Do you have the env-inject plugin installed? On Wed Feb 11 2015 at 4:11:27 AM Arek Skalski wrote: > tested also inside > node("node_name") { > print env.NODE_NAME > } > > output: > > Started by user anonymous > Running: Allocate node : Start > Running on

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-11 Thread Arek Skalski
tested also inside node("node_name") { print env.NODE_NAME } output: Started by user anonymous Running: Allocate node : Start Running on computer1 in /jenkins/workspace/Groovy_Test Running: Allocate node : Body : Start Running: Print Message null Running

[workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-11 Thread Arek Skalski
*groovy script:* print env.NODE_NAME *output*: Started by user anonymous 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 unsubsc