Details

    • Similar Issues:

      Description

      After creation of a new job with jobDSL the created pipeline freezes just before starts to run.
      Debugging I noticed the thread is locked at Utils.groovy#L869
      The attached stack trace shows a possible conflict with groovy MetaClass getProperty, causing the mentioned loop.
      As seen in attached file "jobDsl", the "logRotator" command causes the bug, but I think it's a pipeline-model-definition bug.

        Attachments

        1. another-config.xml
          2 kB
        2. another-thread-stack.txt
          7 kB
        3. config.xml
          2 kB
        4. jobDsl
          0.4 kB
        5. stack
          13 kB

          Activity

          Hide
          tom_gl Thomas de Grenier de Latour added a comment -

          Added link to a PR, with a fix and a test case.

          Show
          tom_gl Thomas de Grenier de Latour added a comment - Added link to a PR, with a fix and a test case.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Thomas de Grenier de Latour
          Path:
          pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
          pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/OptionsTest.java
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/b475449098a9f7636c951882040b5e8209eda617
          Log:
          JENKINS-46403 - fix infinite loop running jobs with a logRotator

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Thomas de Grenier de Latour Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/OptionsTest.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/b475449098a9f7636c951882040b5e8209eda617 Log: JENKINS-46403 - fix infinite loop running jobs with a logRotator
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
          pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/OptionsTest.java
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/6c07792ba4b62f654adf0204e83b6b23711e2342
          Log:
          Merge pull request #206 from thomasgl-orange/JENKINS-46403

          JENKINS-46403 - fix infinite loop running jobs with a logRotator

          Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/47f97fb32373...6c07792ba4b6

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/OptionsTest.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/6c07792ba4b62f654adf0204e83b6b23711e2342 Log: Merge pull request #206 from thomasgl-orange/ JENKINS-46403 JENKINS-46403 - fix infinite loop running jobs with a logRotator Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/47f97fb32373...6c07792ba4b6
          Hide
          abayer Andrew Bayer added a comment -

          Thanks for the fix, Thomas de Grenier de Latour!

          Show
          abayer Andrew Bayer added a comment - Thanks for the fix, Thomas de Grenier de Latour !
          Hide
          bitwiseman Liam Newman added a comment -

          Bulk closing resolved issues.

          Show
          bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

            • Assignee:
              tom_gl Thomas de Grenier de Latour
              Reporter:
              bkmeneguello Bruno Meneguello
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: