jenkinsci / jenkinsci/lockable-resources-plugin

[JENKINS-46235] API does not allow to remove lockable resource

Open
#887 3 comments 0 reactions 0 assignees View on GitHub
component:lockable-resources-plugin imported-jira-issue priority:major resolution:unresolved Triage
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


  • status: Open
  • priority: Major
  • component(s): lockable-resources-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 7
  • imported: 20251217-081411

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

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.