Run sequential jobs on SCM change in jenkins

15 views
Skip to first unread message

Tushanka hak

unread,
Jan 13, 2014, 2:24:46 PM1/13/14
to jenkins...@googlegroups.com
Hi All,


I have a requirement where i need to run Job1 ,Job2 ,Job3 ,Job 4 in a sequential way and these jobs should only be triggered on SCM change


Thanks in advance

Slide

unread,
Jan 13, 2014, 2:30:56 PM1/13/14
to jenkins...@googlegroups.com
build-flow would be very easy for this.


--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Website: http://earl-of-code.com

Daniel Beck

unread,
Jan 13, 2014, 2:31:55 PM1/13/14
to jenkins...@googlegroups.com
Are they using the same SCM URLs, so that whatever triggers job2 should also trigger the others?

If so, use SCM Trigger for job1, and select to build job2 after job1 is finished. Do the same with job3 after job2, and job4 after job3.

Tushanka hak

unread,
Jan 14, 2014, 5:33:15 AM1/14/14
to jenkins...@googlegroups.com
Thanks for your reply.
I tried with buildflow plugin where we define DSL i.e we can define jobs in sequential way but there i am not able to define SCM changes ..Please let me know if i am missing something.
I have a masterjob which contains job1 job2 job3 job4..All these jobs have separate SCM URL's ..When i click run on masterjob ..it should trigger only those jobs which have SCM changes..

Kindly help.
Thanks


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/czfqvgJ8-1E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Tushanka hak

unread,
Jan 14, 2014, 5:36:37 AM1/14/14
to jenkins...@googlegroups.com
No they are not using same URL's.
I have a masterjob which contains job1 job2 job3 job4..All these jobs have separate SCM URL's ..When I click run on masterjob ..it should trigger only those jobs which have SCM changes..
so its when masterjob triggers job1 only if it has SCM changes,and then if job2 has SCM changes it should trigger ,and so on..
Kindly help.

Thanks 


You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/czfqvgJ8-1E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages