jenkinsci / jenkinsci/lockable-resources-plugin

Throw excpetion when count of requiered resources is bigger then current count of resources

Open
#613 1 comment 0 reactions 0 assignees View on GitHub
Triage
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

### Jenkins and plugins versions report

NN

### What Operating System are you using (both controller, and any agents involved in the problem)?

NN

### Reproduction steps

create 1 resources named ABC with label A and start this code
lock(label : 'A', quantity: 2) {
}

### Expected Results

The pipeline shall breaks / throw a exception in validation step, when the count of requested resources is smaller the current count of resources

### Actual Results

Pipiles stucked, until enough resources are created.
This may also happnes when a lock is in queue and the resources are removed between.

### Anything else?

_No response_

### Are you interested in contributing a fix?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.