jenkinsci / jenkinsci/lockable-resources-plugin

Feature request: (optionally) track usage of a resource instance

Open
#141 1 comment 1 reaction 0 assignees View on GitHub
extended properties lock queue priority and visibility Triage ui
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

One of our use-cases for lockable resources is to dedicate actual physical devices used to test firmware builds. One side effect of these tests is writing to flash which eventually wears out, more or less predictably after just so many rewrites.

We would like to track at least how many times a lock for particular resource instance was given out, maybe with a further detail list to see who/what held it, when, how long. It would help us in some purchase planning, as well as to identify some outliers (e.g. notably slower devices) and on the coding side - to see how even the allocations distribution in this plugin really is (first listed and free? evenly random?)

Considering that there are also other use-cases for locks (e.g. dedicated virtual environments, or non-physical resources to sequentialise job runs as promoted in lock+milestone tricks), such book-keeping should be togglable by an additional flag field in the resource definition, off by default.

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.