Continuum
  1. Continuum
  2. CONTINUUM-2476

Projects are not built in the correct build agent when the project is already in the build queue and then triggered to be built again

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5 (Beta)
    • Fix Version/s: 1.4.0 (Beta)
    • Component/s: Distributed Builds
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      For example, you have two build agents configured (BA1 and BA2) and you also have two schedules configured (WINDOWS_DEV_BUILD and NIGHTLY_BUILD). Now, let's say your WINDOWS_DEV_BUILD runs at 6pm, 8pm and 10pm, while your NIGHLTY_BUILD runs at 11pm. You have a set of projects which have two build definitions, BDEF1 which is attached to the WINDOWS_DEV_BUILD schedule and targeted to build at build agent BA1, and BDEF2 which is set to "always build" and is attached to the NIGHTLY_BUILD schedule and targeted to build at build agent BA2.

      At 10pm, the WINDOWS_DEV_BUILD schedule fires and queues the attached projects in BA1. Let's say the build is slow and by 11pm, some of the projects haven't finished building and were still queued. When the NIGHTLY_BUILD schedule fires, the same set of projects are added to the build queue. If you look at the Queues page, you will see that they are also queued in build agent BA1 whereas they should have been queued in build agent BA2 (where they were targeted to build).

        Activity

        Hide
        Maria Catherine Tan added a comment -

        Fixed in r933451

        • added checks if project and build definition is already in queue or is currently preparing build or building
        • select build agent based on the scm roots of the same project group
        • added unit test
        • fixed concurrent modification exception
        Show
        Maria Catherine Tan added a comment - Fixed in r933451 added checks if project and build definition is already in queue or is currently preparing build or building select build agent based on the scm roots of the same project group added unit test fixed concurrent modification exception

          People

          • Assignee:
            Maria Catherine Tan
            Reporter:
            Maria Odea Ching
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: