Thank you for fast reply, Michael.
I got the point.
I've already tried NodeLabel Parameter plugin with parameterized pipeline build job step. But it haven't worked for me.
Soon I'll publish appropriate topic about this way you proposed that doesn't work for me for unknown reason.
The pipeline script I've tried is:
build job: 'job2',
parameters: [
[
$class: 'LabelParameterValue',
name: 'NODE_NAME',
value: 'label1'
]
]
At this case 'job2' is configured with NodeLabel Parameter plugin to accept 'NODE_NAME' named parameter as Label Parameter.
The job 'job2' is triggered successfully at the certain node if I use a job with appropriate Parameterized Trigger post-build action with NodeLabel-parameter NODE_NAME and label 'label1' as upstream one.
And at the 1st case without NodeLabel Parameter plugin but with pipeline 'node'-construct
it seems strange to me that the pipeline "build" step triggers jobs without node context. This implies web-interface driven configuration of a job to be made and the cumbersome parameterized "build" step syntax to be used to run the job at the proper node.
As far as I know, Pipeline plugin is meant to get rid of such inconveniences.
So as for me it would be pretty natural and convenient if pipeline-build-step triggered jobs with pipeline node context (nodes assigned through pipeline 'node'-construct like:
'node (<label expression>) { <build-job steps> }'
).
Kind regards,
Alexander.