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

Pipeline library with method name matching synthetic accessor crashes Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • Jenkins 2.32.1
      workflow-cps 2.24 (and other plugins up to date)
      Oracle Java 1.7.0_111
      Debian 8

      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).

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

              Created:
              Updated:
              Resolved: