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

"load" sometimes load the wrong file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      Setup:

      We have lots of pipelines that rely on common code. Currently, we use "load" to load code that is shared across multiple pipelines:

      Jenkins_helper = load "${someDirectory}/Jenkins_helper.groovy"

      The groovy scripts come from one repo and are checked out at the beginning, the files, then loaded one by one when required.

      Exception

      In approximate 1 out of 1.000 pipeline runs, one random groovy file is not loaded correctly, but Jenkins loads another file. The pipeline then crashes as a method that should be called on this loaded file is naturally not present.
      The checked out file in the workspaces are sane, i.e. both the wrongly loaded file and the file that should actually be loaded are ok.
      No exceptions can be seen in the overall jenkins log nor in the job log

      Version
      We currently have Jenkins in version Version 2.462.2, but it also occurred previous versions

            Unassigned Unassigned
            danielschuh Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: