jenkinsci / lockable-resources-plugin

Lock resources against concurrent use
https://plugins.jenkins.io/lockable-resources
MIT License
87 stars 185 forks source link

Add way to cancel current queued requests in one job (by groovy) #671

Open mPokornyETM opened 5 months ago

mPokornyETM commented 5 months ago

What feature do you want to see added?

We need to cancel queued locks by 'label filter' from groovy in specific build / job Something like

unqueLocks('labelA && labelB', currentBuild);

This is helpfull in parallel jobs, to stop unnecessary queues.

It will also helps to unque all current tasks, when we see that the resource is broken or reserved due maintanance ...

Upstream changes

No response

Are you interested in contributing this feature?

No response