Oh Thanks Brian.. It dint occur to me in your earlier response.. sorry for that.. Now its making sense.. Depending upon the condition i will inject the jobname to a variable and that variable will trigger the Job... Perfect.. Thanks a lot.
Best Regards, Arun On Saturday, 2 June 2012 17:24:24 UTC+5:30, BrianParker wrote: > > > On Thu, May 31, 2012 at 5:59 AM, Arun Kumar <[email protected]> wrote: > >> Thanks Brian, >> >> yes i use Parameterized trigger plugin. But if i use "projects to build" >> field, then i cannot condition the downstream job right? I got a answer to >> my query from OSUBeavBane as below. >> > > I'm glad you found an answer you like. However, for what its worth, yes > you can choose which job to trigger dynamically. Sorry I didn't spell it > our more clearly in my earlier response. Your parameterized trigger config > will look like this: > > Projects to build: ${JOB_NAME} > > An earlier build step will need to calculate which job to trigger and > inject the JOB_NAME value in to the environment. There may be several > ways to do this. You can use the EnvInject plugin. > > Cheers, > > Brian >
