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

Build flow jobs do not respect throttling rules

XMLWordPrintable

      Steps to reproduce:
      1. Create a build-flow projectA
      2. Setup projectA to allow concurrent builds, but configure throttling so only one build is allowed per node
      3. Manually trigger multiple builds of projectA

        • Notice that Jenkins chooses the same node for each build-flow build in a projectA.

      I may be wrong, but it seems that Jenkins will only choose a different node if the build-flow job is for a different project.

      In my case:

      • projectA syncs source code to a local workspace on nodeA
      • projectA orchestrates a parametrized build, passing nodeA as a parameter to ensure the build is done on the same node that the source code was sync'd on
      • The build job has a throttle rule that only allows one build per node so even though two build-flow jobs are running on the same node, one build still has to wait for the other.

      I like that flyweight jobs are excluded from the normal throttle rules, but it would be nice if users could create rules specifically for flyweight jobs; or some way to configure build-flow jobs to not use the same node for each job

            Unassigned Unassigned
            mrose Michael Rose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: