Hi Arun,

So, you can launch jobs programatically within another job. So within
your job just set up an if(x=1) launch J2; if(x=2) launch J3;

For more info on how to programatically launch a job go to
"{JENKINS_URL}/job/{JOB_NAME}/api".

-OSUBeavBane



On May 29, 11:03 pm, Arun Kumar <[email protected]> wrote:
> Hi,
>
> I have a requirement to trigger a job depending upon the input parameter.
> Lets say i have job J1,j2,J3 and J4
>
> The J1 executes and depending upon the input parameter x on job J1 it
> should trigger either J2 or J3. If the x is 1 it should trigger J2 and if
> the x is 2 it should trigger J3.
>
> some what like below flow chart
>
>                                                     J1
>                                             x=1  /   \  x=2
>                                                   /     \
>                                                  J2      J3
>
> Thanks in advance.,
> Arun

Reply via email to