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

each lockable resource should have a quantity field which defaults to 1

      It seems the current implementation for the quantity does require jenkins administrators to define different duplicated/identical resources because they cannot define a quantity.

      This is a serious scalability resources which make harder to implement resources locking for resources that are supposed to be in bigger numbers like: total RAM available or total number of VCPUs. For example in our testing cloud we do have 300 GB RAM and 300 VCPU limit.

      Now is effectively impossible to use the locking plugin for this because we would have to create 600 resource entries in the config, probably the browser will crash before we would be able to add all of these

          [JENKINS-42339] each lockable resource should have a quantity field which defaults to 1

          m corbion added a comment - - edited

          We are also looking for something similar, we have a system running automation where we need to reserve resources dynamically some of them being clients and other being servers. Having the lock in a single step is highly important for us, however we don't always have the same number of servers as we have clients. We tried a workaround by creating a list of label or a chain of string  ['CLIENT', 'CLIENT', 'CLIENT', 'SERVER'] hoping that this can help us circumvent the problem but that's not how the plugin seems to work.

          m corbion added a comment - - edited We are also looking for something similar, we have a system running automation where we need to reserve resources dynamically some of them being clients and other being servers. Having the lock in a single step is highly important for us, however we don't always have the same number of servers as we have clients. We tried a workaround by creating a list of label or a chain of string  ['CLIENT', 'CLIENT', 'CLIENT', 'SERVER'] hoping that this can help us circumvent the problem but that's not how the plugin seems to work.

            Unassigned Unassigned
            ssbarnea Sorin Sbarnea
            Votes:
            20 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: