How to pass parameter from upstream job to downstream pipeline jobs which i dont want to parametrize

22 views
Skip to first unread message

mcdha...@gmail.com

unread,
Aug 14, 2018, 5:43:10 AM8/14/18
to Jenkins Users
I have 5 pipeline jobs and three nodes, say A,B and C which are connected to master jenkins. my intention is by default all jobs should run on node A, and when i trigger these 5 jobs through a parametrized job by selecting node B or node C as parameter manually, then all 5 pipeline jobs should run on the selected node as parameter.

I used Nodelabel parameter plugin.

I created job--->this project is parametrized-->Add parameter--->selected node---->selected node A as default---->selected node B and Node C as possible nodes---->in post build actions selected Trigger parametrized build on other projects--->added all 5 pipeline jobs in projects to build field---->selected Build on the same node

but when i select parameter as node B and build, only upstream job builded on node B all downstream jobs builded on default node. In build history of downstream job it will show it is builded on node B but if i see console output it is actually building on default node A not on node B.

Please suggest me solutions for this problem.

Thanks,
Dhanushree
Reply all
Reply to author
Forward
0 new messages