Shared Resource Type "Quota list"

Hi,

In our build setup we are using a compiler. For this compiler we have two floating licenses. This compiler is installed on five Continua-Agents therefore an agent can only build with this compiler when one of the two floating licenses has been assigned to it.

So it would be great to handle license assignment as a Shared Resource. The idea is that the Stage which needs a license locks one of them out of a Quota List, reads its Label and uses the Label String to acquire an actual licence from the license server. However for this we need a way to read out the name of the Shared Resource Label which has been locked for a compiler run.

So far we made a Shared Resource named Server.FloatingLicense of the type Quota List with two Labels and a Quota count of one for each. In the Project Configuration->Stages->"Edit Stage Options" under "Shared Resource Locks" we selected this Shared Resource with the "Operation" value "Acquire Any" and a "Number" count of one. So how is it now possible to read out the name of the Label which as been locked during runtime so that we can forward this information to the license server?

Best regards


Hi Marcel,

We don’t currently have any expressions for accessing Shared Resource locks at the moment. What you would need is an expression such as $Build.SharedResourceLocks.Namespace.Name.LabelsAcquired$. We can see how this would be useful and another user has made a similar request. We’ve looked into how this could be achieved and there’s quite a bit of background work required so we’ve added this to our to-do list for now.