Pipeline library with method name matching synthetic accessor crashes Jenkins

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

            Assignee:
            Unassigned
            Reporter:
            Steffen Gebert
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: