Skip to content

Commit

Permalink
Document effect of setting quantity to 0 in README (#736)
Browse files Browse the repository at this point in the history
This relates to #198
  • Loading branch information
JonasScharpf authored Dec 16, 2024
1 parent 46058e2 commit b413871
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ pipeline {
}
```

Setting `quantity` to `null`, `0` or a smaller number, all available resources of that label are locked at once.

#### Take first position in queue

```groovy
Expand Down
5 changes: 5 additions & 0 deletions src/doc/examples/scripted-vs-declarative-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ node() {
}
}
```

## Pitfalls

Setting `quantity` to `null`, `0` or a smaller number, all available resources of that label are locked at once.
See [#198 - Lock All resources by setting quantity to 0 is not documented](https://github.com/jenkinsci/lockable-resources-plugin/issues/198).

0 comments on commit b413871

Please sign in to comment.