Locks on stages are simpler than in conditions

Would it be difficult to also add expression lock to stages as it is in conditions for running build ?
In stage I can only select lock and rest is unchangable, in conditions I can select type and/or expression.

Hi Michal,

It is currently possible to acquire a shared resource lock label for a stage based on an expression - see screenshot below:

Note that expression locks are only relevant to shared resources of type “Quota List”. Perhaps the reason you are not seeing the Acquire Expression operation is because your shared resource is of type “Quota”?

Yes, sorry, my bad.
I have same lock names on Agent and on Server… The one from Server namespace is what I wanted and I can use expression there.

1 Like

Actually, it works, but everytime I edit any of the stages the value of the expression is emptied…

Edit. Seems not every stage edit empties this value.
Edit. 2. I can confirm that after clicking Save on stage options dialog, expression lock is emptied.

OK - we’ve reproduced this issue. The “operation” dropdown is not updated correctly when opening the dialog. If you change the dropdown then the expression reappears. If you Save All Stages and refresh the page, then the “operation” dropdown is updated and the expression is there. We’ll work on a fix on Monday.