jenkinsci / jenkinsci/lockable-resources-plugin
[JENKINS-46235] API does not allow to remove lockable resource
- Dominant language
- Java
- Stars
- 99
- Forks
- 205
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 8
Description
There is a way to dynamically create lockable resource within the jenkins pipeline script using LockableResourcesManager::createResource() and ::createResourceWithLabel(), but there are no API method to remove said resource.
NOTE: Fixing JENKINS-38906">JENKINS-38906 in a way suggested by eeaston could require said method to be developed (as 'transient' resources will be created and removed in pipeline step).
---
Originally reported by mireksz, imported from: API does not allow to remove lockable resource
Raw content of original issue
There is a way to dynamically create lockable resource within the jenkins pipeline script using LockableResourcesManager::createResource() and ::createResourceWithLabel(), but there are no API method to remove said resource.
NOTE: Fixing
JENKINS-38906in a way suggested by eeaston could require said method to be developed (as 'transient' resources will be created and removed in pipeline step).
Contributor guide
Research direction
Start by reading LockableResourcesManager::createResource() and ::createResourceWithLabel(), then trace how dynamically created resources are used from the Jenkins pipeline script. Define the corresponding removal API and verify that resources created during a pipeline can be removed when they are no longer needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100