Use stage as a resource lock

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      My use case is users launching multiple jobs that use a lot of server bandwidth, so I would prefer to do something that limits the number of stages running concurrently similar to:

      stage 'start'
      stage name: 'bandwidth-hog', concurrency: 5, resourceLock: true
      //bandwidth hogging code
      stage 'finish'
      

      However, I can't have newer jobs pre-empt older jobs, they should just be queued up. Of course, this could be a new step as well. Hopefully this helps others as well!

            Assignee:
            Jesse Glick
            Reporter:
            Anshu Arya
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: