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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: core
    • Environment:
      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

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

              Created:
              Updated: