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

Allow for random resource return.

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • Jenkins: 1.150.1
      Lockable resource plugin: 2.3

    Description

      When getting a resource, I'd like to way to get a random resource. The current behavior seems to return the first on the stack. This ends with one resource getting used more then the others but I'd like to be able to randomize the resource returned.

      Attachments

        Activity

          bencehornakgls Bence Hornák added a comment -

          Yes I agree with mdelaney, depending on the use case it can be problematic, that one resource gets more worn than the others (especially since the resource is some hardware).

          So an easy randomization could extend the lifespan of these devices.

          bencehornakgls Bence Hornák added a comment - Yes I agree with mdelaney , depending on the use case it can be problematic, that one resource gets more worn than the others (especially since the resource is some hardware). So an easy randomization could extend the lifespan of these devices.

          People

            Unassigned Unassigned
            mdelaney Mike Delaney
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: