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

Builds not being throttled when using declarative pipeline and Docker swarm

    XMLWordPrintable

Details

    Description

      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

       

       

      Attachments

        Activity

          charlesmichael Charles Michael created issue -
          mstein1 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.

          mstein1 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.
          gl1koz3 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.

          gl1koz3 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.

          People

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

            Dates

              Created:
              Updated: