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

Builds not being throttled when using declarative pipeline and Docker swarm

    XMLWordPrintable

    Details

    • Similar Issues:

      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

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

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

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlesmichael Charles Michael
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: