On Tuesday, December 9, 2014 8:50:57 AM UTC-5, Rupali wrote:
>
> node('master') {
> build 'test-build'
> }
>
> Though I have selected node as 'master' for this step, the build job 
> "test-build" gets triggered on some other slave node.
> Is this expected behavior?
>

Yes. The contextual node (if any) is ignored by the ‘build’ step. Whatever 
test-build specifies as its assigned label is where it will build.

(If you really need the workflow to decide where the downstream project 
should run, you could probably do this somehow with the node label 
parameter plugin. But I cannot think of any use case for that.)

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/aa7063d7-27d2-4476-b7af-f02ddf4adb9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to