Hi ,

I have a source code repository having multiple branches say branch1, 
branch2 and so on.

Currently i have a jenkins jobs which builds the master or whatever i 
specify in job configuration.Now what i wish to achieve is if i commit my 
changes to branch 1 , my jenkins job should automatically context switch 
from master to branch1 and build that, and in the next step if i commit on 
branch2 it should  build branch 2.

i am able to make rest calls via DSL script to get the branch names and 
then use job dsl  to create  the jobs  as the number of branches are 
present.
However i don't want multiple jobs. What i am looking is having a single 
intelligent job to do the context switching between jobs.
 
Any idea or help will be appreciated.

Thanks,
Touseef

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3543d8da-3c80-4764-bc7c-092053f8c103%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to