Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32342

Add option to select exclusion resource to critical section

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • exclusion-plugin
    • None

      Currently the exclusion plugin allows one to define multiple "exclusion resources" to any particular job. However, when adding the critical section start/end steps to the build process there is currently no way to indicate which of these exclusion resources each critical section should use.

      For example, suppose you have two exclusion resources, say "resource A" and "resource B". Now, suppose you have two separate operations in your build sequence, the first of which needs to be excluded when resource A is locked and the second of which needs to be excluded when resource B is locked. From what I can tell this is currently not possible.

      As such what I'd like to see is some additional configuration options provided to the "critical block start" and "critical block end" build steps allowing the user to select which of the exclusion resources each block is associated with. To preserve backwards compatibility you could associate each critical block with all configured exclusion resources by default but then allow the user to customize the selection as desired.

            Unassigned Unassigned
            leedega Kevin Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: