Details

    • Similar Issues:

      Description

      It will be great if this plugin can be used as part of the Workflow plugin by some kind of DSL like:

      def freePort= PortAllocator.get()

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          if someone provides me the necessary pointers

          As in my original comment, anything referred to by the Disposer needs to be Serializable. Otherwise in

          wrap([$class: 'PortAllocator', pool: 'POOLNAME']) {
            sh 'make world' // runs five hours, restart Jenkins after two
          }
          

          the build will explode after the restart.

          Show
          jglick Jesse Glick added a comment - if someone provides me the necessary pointers As in my original comment, anything referred to by the Disposer needs to be Serializable . Otherwise in wrap([$class: 'PortAllocator' , pool: 'POOLNAME' ]) { sh 'make world' // runs five hours, restart Jenkins after two } the build will explode after the restart.
          Hide
          jbq jbq added a comment -

          FYI implementation has been submitted as part of https://github.com/jenkinsci/port-allocator-plugin/pull/10

          I just used it successfully in my project, any active maintainer could review it and integrate the changes?

          Show
          jbq jbq added a comment - FYI implementation has been submitted as part of https://github.com/jenkinsci/port-allocator-plugin/pull/10 I just used it successfully in my project, any active maintainer could review it and integrate the changes?
          Hide
          jameshowe James Howe added a comment -

          Oliver Gondža Richard Mortimer

          Are either of you able to sort this out?
          I'm not sure if the PR needs updating e.g. for declarative support.

          Show
          jameshowe James Howe added a comment - Oliver Gondža Richard Mortimer Are either of you able to sort this out? I'm not sure if the PR needs updating e.g. for declarative support.
          Hide
          olivergondza Oliver Gondža added a comment -

          There is a pull request proposed that needs more work. As the plugin appears generally unmaintained, it takes a volunteer to have a look at that..

          Show
          olivergondza Oliver Gondža added a comment - There is a pull request proposed that needs more work. As the plugin appears generally unmaintained, it takes a volunteer to have a look at that..
          Hide
          aknight1969 Andrea Knight added a comment -

          Hello, has there been any more progress on this item?

          Show
          aknight1969 Andrea Knight added a comment - Hello, has there been any more progress on this item?

            People

            • Assignee:
              jbq jbq
              Reporter:
              lielran Liel Ran
            • Votes:
              19 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated: