0

I need to 2 jobs (JobA and JobB) in Jenkins. If JobA is in run. If I try to run the JobB or again run the JobA while first job is in run state, I want the new jobs to go in a queued state for run.

Which plugin can I use in Jenkins to queue the jobs?

amalms
  • 23
  • 5
  • 1
    Possible duplicate of [How to prevent certain Jenkins jobs from running simultaneously?](https://stackoverflow.com/questions/6276272/how-to-prevent-certain-jenkins-jobs-from-running-simultaneously) – André DS Mar 19 '19 at 09:03

1 Answers1

2

You need two plugins to achieve what you want :

  1. Throttle Concurrent Builds Plugin: to block a build of JobA if one is already running
  2. Build Blocker Plugin: to block a build of JobB if a build of JobA is already running
SmartTom
  • 691
  • 7
  • 14