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

Pipeline library with method name matching synthetic accessor crashes Jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I managed to program my pipeline library so that it leads to the Jenkins job eating up all CPU, OOMing and successfully still surviving any restarts or requests to stop the job.

      The following Jenkins file should help you to reproduce this:

      @Library('github.com/TYPO3-infrastructure/jenkins-pipeline-global-library-chefci@bug-git-reflist-hang')
      def dummy
      org.typo3.chefci.v2.Pipeline.builder(this, steps)
      	.buildDefaultPipeline()
      	.execute()
      

      This code here defines a method setKitchenLocalYmlName() which matches the synthetic accessor's name of the kitchenLocalYmlName class variable (a thing, of which I wasn't aware of).

      This seems to be something that Jenkins cannot handle. Renaming the method or variable solves the problem.

      The error occurs immediately after checking out the code (I thought it was during git ref-list parsing, that's why the branch is called like this).

        Attachments

          Issue Links

            Activity

            Hide
            stephenking Steffen Gebert added a comment -

            I've updated the branch to not kill my jenkins installation, so please use commit 688cdd1 to reproduce this.

            Show
            stephenking Steffen Gebert added a comment - I've updated the branch to not kill my jenkins installation, so please use commit 688cdd1 to reproduce this.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stephenking Steffen Gebert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: