I'm trying to figure out how I can reserve an external resource in a workflow which would cause other workflows(or it's jobs) who compete for that resource to queue.
This is the scenario: - I have workflows that need to run tests against a specific piece of hardware. These tests are multiple Freestyle jobs. - Any one workflow will consists of: software build, hardware Setup, test(s) execution, hardware Teardown. - While a workflow is using hardware platform "A" for example, from Setup through Teardown, no other jobs can use "A". - I cannot constrain the number of workflows or tests - These workflows are run asynchronously and will compete for the same hardware to run tests against. I need a workflow to "reserve" a piece of hardware and that reservation needs to survive across multiple jobs (within the workflow). I've tried using "Throttle Concurrent Jobs" within the test jobs but the throttle is immediately released once an individual job is completed. The workflow describes the set of tests and therefore the scope of the reservation. I thought about running a parallel job that would use Throttle Concurrent Jobs, but then I need a way to communicate to that job about when to end or be able to stop it. Any thoughts? Thanks, Dave -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e2ae63a6-00d5-4168-a59e-76b9111c899e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.