Comments (7)
I'm also observing this. This happens even if running all tests on a single node. I'm using parallel tests if that is important:
stage("Tests") {
steps {
parallel(
"DB": {
lock('db') {
ws(WS_DB) {
checkout scm
sh './tests-db'
}
}
},
"Mongo": {
lock('mongo') {
ws(WS_MONGO) {
checkout scm
sh './tests-mongo'
}
}
},
...
from lockable-resources-plugin.
You could always give a try to my PR #87, when testing it I noticed that bug and also fixed it (call the same method that is called when a lock is released by a job).
from lockable-resources-plugin.
When I lock the resource my self manually, then the pipeline build never acquires the resource after I release it. However if I start two builds of same pipeline, build one acquires the resource locks and build two waits. When build one releases the resource locks, then build two acquires the locks. So it seems only a problem when locking the resources manually.
My problem however seems to be when using lock on label. It might be related to this issue.
https://groups.google.com/forum/#!topic/jenkinsci-users/QiuXKcadHZw
I have defined 3 resources, all with the same label.
Pipeline build ONE has acquired a lock on label, thus locking all three resources.
Pipeline build TWO is waiting for a resource within each of the 3 parallell stages.
When Pipeline build ONE has released its lock then the Pipeline build TWO only manages to acquire the first resource of the 3 resources. The entire builds hangs waiting for the remaining two resources which are free.
Will PR #87 fix my problem?
from lockable-resources-plugin.
Will PR #87 fix my problem?
No, it will be fixed by #70
from lockable-resources-plugin.
Isn't the #70 fix just for manual reservation/unreservation of a resource by a user?
Will it fix my issue with locking on label and resource by two consecutive builds?
from lockable-resources-plugin.
Hi, I have the same issue with manually reserved ressources and a lock on label in the pipeline.
The pipeline does not resume after unreserving the ressource.
from lockable-resources-plugin.
This should have been fixed in release 2.3
from lockable-resources-plugin.
Related Issues (20)
- Ability to lock one resource from list, not by label HOT 2
- Re-define ephemeral resources used by revived builds when Jenkins controller is restarted HOT 1
- Aquire lock without using try-with-resources notation HOT 4
- Print detailed lock cause in the build log
- Name and value of properties are missing on api HOT 2
- 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 4
- Missing permission Job/Configure for Administrator
- Adapt plugin for Data Table API 2.0.x HOT 6
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.