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

Builds not being throttled when using declarative pipeline and Docker swarm

      We are running Jenkins with a master executor and using declarative Jenkins pipeline syntax. We have our project set up as a multi-branch pipeline. Builds are initiated via a webhook from GitHub pull requests. The master executor starts the stage and then delegates to a docker container that is brought up in a docker swarm. When using throttle with 2 maximum total concurrent builds and 1 maximum concurrent build per node, we are able to run more than 2 concurrent builds. Please see the attached images for our configuration and our pipeline

       

       

          [JENKINS-63120] Builds not being throttled when using declarative pipeline and Docker swarm

          Markus Stein added a comment -

          Same here, even without docker swarm. Only using declarative pipelines.

           

          I have configured maximum 1 per node in a category, but it executes even more on the same node.

          On classic jobs it works, but not on declarative pipeline jobs.

          Markus Stein added a comment - Same here, even without docker swarm. Only using declarative pipelines.   I have configured maximum 1 per node in a category, but it executes even more on the same node. On classic jobs it works, but not on declarative pipeline jobs.

          Edgars Batna added a comment - - edited

          We are seeing issues with just scripted jobs. They sort of get throttled, but most of the time end up running more than configured amounts of builds per node. Freestyle jobs outright ignore the existence of scripted pipeline jobs.

          Edgars Batna added a comment - - edited We are seeing issues with just scripted jobs. They sort of get throttled, but most of the time end up running more than configured amounts of builds per node. Freestyle jobs outright ignore the existence of scripted pipeline jobs.

            Unassigned Unassigned
            charlesmichael Charles Michael
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: