Project Hierarchy

15 views
Skip to first unread message

Yonnatan bar

unread,
Oct 26, 2015, 10:09:19 AM10/26/15
to Jenkins Users
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

Victor Martinez

unread,
Oct 26, 2015, 3:56:08 PM10/26/15
to Jenkins Users

Yonnatan bar

unread,
Oct 27, 2015, 8:14:22 AM10/27/15
to Jenkins Users
Thanks Victor , 
That was exactly what i needed 

Br
Yonnatan
Reply all
Reply to author
Forward
0 new messages