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

discoverReferenceJob doesn't update if other job completes in the meantime

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • forensics-api-plugin
    • None
    • Jenkins: 2.452.1
      OS: Linux - 4.18.0-553.5.1.el8_10.x86_64
      Java: 17.0.11 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
      ---
      forensics-api:2.4.0
      warnings-ng:11.3.0

      {{discoverReferenceBuild }}will not update to the latest completed build after being called for the first time.

      Scenario:

      1. Build A is completed
      2. Build B starts
      3. Build C starts and calls discoverReferenceJob -> points to A
      4. Build B publishes some report with the same ID as used in the other jobs
      5. Build C calls discoverReferenceJob again -> Reference Build switches to B but WarningsNG still uses A.

      Behavior before the switch to Forensics API was that Job C's delta would have pointed to Job B as soon as it published the report. Now, even after calling discoverReferenceJob, it doesn't update.

      The reference build is correctly set to the latest completed one, but warningsNG sticks with the one found when discoverReferenceBuild was called the first time.

      -> Updating WarningsNG breaks some pipeline logic from us.

            drulli Ulli Hafner
            meiswjn Jan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: