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

Support throttling of blocks without node() in the throttle() step

    XMLWordPrintable

Details

    Description

      We have a limit on the number of licenses we can use concurrently. Before pipeline as code we could use the throttle to limit the number of jobs to 16.
      With pipeline as code and 2.0 of the plugin we cannot limit jobs unless we create the jobs and trigger in parallel.
      Is there any intention to make the lateste plugin work in the same way as before without having to do parallel jobs

      Attachments

        Activity

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          README.md
          http://jenkins-ci.org/commit/throttle-concurrent-builds-plugin/7c61f6119c67ffb046bcf3afb596671b12011bd8
          Log:
          Merge pull request #49 from oleg-nenashev/docs/JENKINS-44411-clarify-throttle-step

          JENKINS-44411 - Extend documentation to clarify throttle() behavior

          Compare: https://github.com/jenkinsci/throttle-concurrent-builds-plugin/compare/1497858da1f6...7c61f6119c67

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: README.md http://jenkins-ci.org/commit/throttle-concurrent-builds-plugin/7c61f6119c67ffb046bcf3afb596671b12011bd8 Log: Merge pull request #49 from oleg-nenashev/docs/ JENKINS-44411 -clarify-throttle-step JENKINS-44411 - Extend documentation to clarify throttle() behavior Compare: https://github.com/jenkinsci/throttle-concurrent-builds-plugin/compare/1497858da1f6...7c61f6119c67
          rob_squire Robert Squire added a comment -

          The new documentation is now clear on the use of throttle for pipelines.

          rob_squire Robert Squire added a comment - The new documentation is now clear on the use of throttle for pipelines.

          Hi, any update on support of declarative pipeline flows ? 
          Thanks

          cyberjoac Joachim Hagege added a comment - Hi, any update on support of declarative pipeline flows ?  Thanks
          5im Simon K added a comment -

          Hi, we switched to the lock-Plugin for this use case:
          https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin

          Worked as aspected

          5im Simon K added a comment - Hi, we switched to the lock-Plugin for this use case: https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin Worked as aspected
          marcus_phi Marcus Philip added a comment - - edited

          Lockable resources solves some use cases in declarative pipelines, but not all.

          I want to limit builds of a declarative pipeline project to one build per node. I can't achieve this.

          The documentation in "Example 3: Throttling of declarative pipelines" is lacking/misguiding. I've tested, and it has no throttling effect on a single declarative Pipeline job. Does it only throttle between jobs using same category? (And in that case, are different branches in a multi-branch pipeline considered different jobs?) IMHO, that feature is not as useful as being able to throttle on the same job.

          marcus_phi Marcus Philip added a comment - - edited Lockable resources solves some use cases in declarative pipelines, but not all. I want to limit builds of a declarative pipeline project to one build per node. I can't achieve this. The documentation in "Example 3: Throttling of declarative pipelines" is lacking/misguiding. I've tested, and it has no throttling effect on a single declarative Pipeline job. Does it only throttle between jobs using same category? (And in that case, are different branches in a multi-branch pipeline considered different jobs?) IMHO, that feature is not as useful as being able to throttle on the same job.

          People

            Unassigned Unassigned
            rob_squire Robert Squire
            Votes:
            12 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated: