• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins: 1.150.1
      Lockable resource plugin: 2.3

      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.

          [JENKINS-55521] Allow for random resource return.

          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.

          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.

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

              Created:
              Updated: