Code Monkey home page Code Monkey logo

Comments (7)

dabrowt1 avatar dabrowt1 commented on June 14, 2024

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.

dcendents avatar dcendents commented on June 14, 2024

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.

DJViking avatar DJViking commented on June 14, 2024

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.

amuniz avatar amuniz commented on June 14, 2024

Will PR #87 fix my problem?

No, it will be fixed by #70

from lockable-resources-plugin.

DJViking avatar DJViking commented on June 14, 2024

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.

SiFreZi avatar SiFreZi commented on June 14, 2024

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.

TobiX avatar TobiX commented on June 14, 2024

This should have been fixed in release 2.3

from lockable-resources-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.