jenkinsci / jenkinsci/lockable-resources-plugin

Add ability to do custom check on a device when locking

Open
#690 5 comments 3 reactions 0 assignees View on GitHub
approved
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

### What feature do you want to see added?

I t would be nice to be able to do some checks on the device when picking a device from the pool e.g. ping test, ssh/telnet login test to ensure the device is in usable state. developer should be able to provide and point to a piece of code to be used to check if the device is in good state before logging.

Possible flow could be:

1. Lock a resource
2. Run the provided device check code
3. Continue of the code returns True,
4. Else, try the next available resource from the pool
5. If none found abort/fail the build with proper error message

### Upstream changes

_No response_

### Are you interested in contributing this feature?

_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.