Comments (5)
This seems to be another request for a feature that myself and others have been asking for.
Look at the issue titled "DSL lock by label doesn't reveal which resource was locked". It contains a workaround that you may be able to use.
from lockable-resources-plugin.
IMHO the example for this use-case is flawed: the "label" describes some feature or type or resources, e.g. "printers" in the doc. Many resource instances can have the same label, so if you're testing some printing software - you can exclusively have some (any) device with a printer for your job.
Also a resource instance can have many labels that you might match simultaneously or just one by one, to use the same resource in different jobs at different times (e.g. matching "linux & x86" vs. "linux & arm" for jobs where architecture matters, compared to "linux" vs. "windows" in another job that tests architecture-independent scripts or spellchecks texts or whatever, with tools available on Linux but not Windows in your farm).
In the OP's example you would "ping" the given instance of the resource, e.g. by its name (groovy variable whose name you define in the job which uses the lockable resources).
You may also be interested in #72 and #73 for examples with code you can copy-paste.
from lockable-resources-plugin.
I think you are looking for #49. I did not have the time to review it yet, will try to do it soon.
from lockable-resources-plugin.
I'm in the exact same case as the one described by @edupo above. I'm eagerly waiting for the pull request #49 to be merged :-)
from lockable-resources-plugin.
Since #49 was merged a year ago, I consider this fixed
from lockable-resources-plugin.
Related Issues (20)
- ConcurrentModificationException when serializing LockedResourcesBuildAction#lockedResources HOT 5
- get lock by resource name result in NPE HOT 3
- Deadlock on Jenkins controller while using lockable resources HOT 13
- it.getQueue() in /lockable-resources/. Reason: java.lang.NullPointerException HOT 7
- Trim spaces from resource name, otherwise it will stuck HOT 1
- Throw excpetion when count of requiered resources is bigger then current count of resources HOT 1
- Unqueue all items contains the build, when the build has been canceled / killed (to improve performance) HOT 1
- Use of [] for extra to not lock is not working anymore with 1232.v512d6c434eb_d release HOT 7
- LRM lacks a method to remove a lockable resource from the list HOT 3
- Empty ressource is not allowed anymore HOT 11
- Lease Time HOT 1
- jenkins startup failure HOT 22
- Is there any API documentation on what is supported? Can this be used from command line outside of jenkins? HOT 10
- Missing permission Job/Configure for Administrator
- Adapt plugin for Data Table API 2.0.x HOT 6
- Set reserved timestamp when stealing lock
- manually unlock "globally locked" resource early
- ReservedTimeStamp leads to failure in Plugin:Configuration as Code Plugin during booting jenkins HOT 1
- Add feature to prevent creation of Ephemeral resources
- Sometimes the plugin throws an IndexOutOfBoundsException with multiple locks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lockable-resources-plugin.