Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43574

Lockable resources plugin does not take effect

    XMLWordPrintable

Details

    Description

      We are doing automated regression testing with jenkins and using the lockable resources plugin to run one test job at a time. But sometimes it fails to acquire the lock on the testing system and one or more test job starts before the first one finished depending on when the lockable resource plugin starts to work again. Example wrong behavior:
      17:09:23 Started by timer

      17:09:23 [lockable-resources] acquired lock on []

      17:09:23 [EnvInject] - Loading node environment variables.
      Please tell me what kind of logs do you need to debug this issue.

      Attachments

        Issue Links

          Activity

            krulls Stephan Krull added a comment -

            Set up a PR to get that one done.

            krulls Stephan Krull added a comment - Set up a PR to get that one done.

            Code changed in jenkins
            User: krull
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            src/test/java/org/jenkins/plugins/lockableresources/BasicIntegrationTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/1e440bfbbd803400065c062ae6bba9b86a7e45ac
            Log:
            JENKINS-43574: fix construction of RequiredResourcesProperty

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: krull Path: src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java src/test/java/org/jenkins/plugins/lockableresources/BasicIntegrationTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/1e440bfbbd803400065c062ae6bba9b86a7e45ac Log: JENKINS-43574 : fix construction of RequiredResourcesProperty

            Code changed in jenkins
            User: krull
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/90bee03e8972183210ca5510f4e276bc8097cdb7
            Log:
            JENKINS-43574: replace whitespaces with tabs

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: krull Path: src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java http://jenkins-ci.org/commit/lockable-resources-plugin/90bee03e8972183210ca5510f4e276bc8097cdb7 Log: JENKINS-43574 : replace whitespaces with tabs

            Code changed in jenkins
            User: Antonio Muniz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            src/test/java/org/jenkins/plugins/lockableresources/BasicIntegrationTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/67a01b44f4a995955e0888db62f927fcc740697a
            Log:
            Merge pull request #89 from krulls/master

            JENKINS-43574: fix construction of RequiredResourcesProperty

            Compare: https://github.com/jenkinsci/lockable-resources-plugin/compare/3b9717e389f7...67a01b44f4a9

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muniz Path: src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java src/test/java/org/jenkins/plugins/lockableresources/BasicIntegrationTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/67a01b44f4a995955e0888db62f927fcc740697a Log: Merge pull request #89 from krulls/master JENKINS-43574 : fix construction of RequiredResourcesProperty Compare: https://github.com/jenkinsci/lockable-resources-plugin/compare/3b9717e389f7...67a01b44f4a9

            Released as 2.2

            amuniz Antonio Muñiz added a comment - Released as 2.2

            People

              Unassigned Unassigned
              szanics Bela Szanics
              Votes:
              11 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: