Can a single build definition be used in 2 different jenkins joba?
One answer
Rainy,
From Jenkins I believe you can assign the same build definition to any number of jobs.
The obvious implication is that the build definition has most of the configuration (what workspace, components, load rules, etc...) so you won't be able to tailor a per-job configuration (or maybe that is your intent here.)
The other implication is that when you double-click the Build Definition to show the history, you'll get a scattered mix of various builds from differently-named Jenkins jobs and your build trend won't make much sense (you could have had 8 'green' successful builds from one job, 1 'red' failed job from another.)
I'm not sure if the build definition will allow multiple subscribed jobs or if it may queue against Jenkins, I haven't tested locally.
From Jenkins I believe you can assign the same build definition to any number of jobs.
The obvious implication is that the build definition has most of the configuration (what workspace, components, load rules, etc...) so you won't be able to tailor a per-job configuration (or maybe that is your intent here.)
The other implication is that when you double-click the Build Definition to show the history, you'll get a scattered mix of various builds from differently-named Jenkins jobs and your build trend won't make much sense (you could have had 8 'green' successful builds from one job, 1 'red' failed job from another.)
I'm not sure if the build definition will allow multiple subscribed jobs or if it may queue against Jenkins, I haven't tested locally.