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

Enhancement: make recources addressable in build-flow plugin

      Is it possible to address the lockable resources inside the DSL of the build-flow-plugin?
      This would make it possible to lock and release resources during the buildflow dynamically.
      What are the commands to do that?

          [JENKINS-29207] Enhancement: make recources addressable in build-flow plugin

          At present there is no explicit support for either locking or unlocking resources in this fashion, but you can accomplish it by calling the appropriate APIs directly from the flow DSL as it is not currently sandboxed.

          I would not necessarily expect the lockable resources plugin to ever explicitly support this behaviour because it more focused on managing locks prior to builds even starting. Is it possible that the Exclusion Plugin is more suited to what you are trying to do? Again there is no explicit support between these two plugins, but you may be able to accomplish what you need via direct API calls and the plugin is intended to lock/unlock during the course of a build.

          Jim Carrothers added a comment - At present there is no explicit support for either locking or unlocking resources in this fashion, but you can accomplish it by calling the appropriate APIs directly from the flow DSL as it is not currently sandboxed. I would not necessarily expect the lockable resources plugin to ever explicitly support this behaviour because it more focused on managing locks prior to builds even starting. Is it possible that the Exclusion Plugin is more suited to what you are trying to do? Again there is no explicit support between these two plugins, but you may be able to accomplish what you need via direct API calls and the plugin is intended to lock/unlock during the course of a build.

          Jesse Glick added a comment -

          Analogous to JENKINS-30269 for Pipeline.

          Jesse Glick added a comment - Analogous to JENKINS-30269 for Pipeline.

          Since build-flow is basically dead nowadays and replaced with pipeline, I don't think implementing this is worthwhile. Reopen/comment to disagree

          Tobias Gruetzmacher added a comment - Since build-flow is basically dead nowadays and replaced with pipeline, I don't think implementing this is worthwhile. Reopen/comment to disagree

            Unassigned Unassigned
            phil_ Philipp Strobel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: