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

Job.isBuilding() returns true when there is a build still ongoing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins 2.235.3

      We have this setup with 2 pipeline jobs, trigger_test and test:

      Trigger_Test:
      -> calls build job Test on different nodes (4 - 6) with wait:false so they run concurrently
      -> needs to wait for Test to finish all builds, using isBuilding() and isInQueue to check if Test is still running

      Test:
      -> Runs same thing on different PCs and we measure the time.


      Expected behavior:
      -> the check on Trigger_Test is only true when all Test builds finish

      Actual behavior:
      -> the check on Trigger_Test is true when the last build finishes

            Unassigned Unassigned
            karanva Karolina Arancibia Valuskova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: