You can use blocker plugin https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin
Cheers On Monday, 26 October 2015 15:09:19 UTC+1, Yonnatan bar wrote: > > I got 2 Different Projects in Jenkins Lets call them Job A and Job B > > Job A - Delete old Code , Get Latest Code from TFS , Build the Code , Test > IT > Job B - Compile Less files to CSS > > I used to have Job B as a step in Job A but due to that it takes more than > 10 minutes and not dependent on anything other than Getting the code and > can run in parallel to the rest of the Tasks, > I seperated it into Seperate Job (Job B ) and now i have a step in Job A > to execute Job B as a non-blocking Step . > > My Problem : > Job B takes around 11-15 minutes while Job A takes around 5 , > Sometimes Job A starts Again before Job B is done and then fails right > after (Because it cant delete the files that are being used in Job B) > > How is it possible for me to still allow Job B to start while Job A is > running , but prevent Job A from starting while Job B still running? > > Thanks in Advance > Yonnatan > -- 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/072de7da-0b00-492b-b368-aa2269164e28%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
