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

Throttling based on parameters does not work in Pipelines

    Details

    • Similar Issues:

      Description

      Configuration

      1. Pipeline job with parameters
      2. Execute concurrent builds if necessary: true
      3. Throttle Concurrent Builds: true
      4. Prevent multiple jobs with identical parameters from running concurrently: true

      Notes

      • Job parameters are defined as part of the pipeline setup with the properties command
      • This is also an issue when properties are not defined as part of the pipeline setup, and are configured through the UI directly

      Problem

      When throttling based on one of the job's parameters, the plugin does not prevent multiple builds from running concurrently when the defined parameter is the same.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            HemangLavana I am sure. TCB plugin is not integrated with Pipeline, which is explicitly mentioned in https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md . It means that any TCB plugin logic may work incorrectly with Pipeline.

            Show
            oleg_nenashev Oleg Nenashev added a comment - HemangLavana I am sure. TCB plugin is not integrated with Pipeline, which is explicitly mentioned in https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md . It means that any TCB plugin logic may work incorrectly with Pipeline.
            Hide
            hemanglavana HemangLavana added a comment -

            thx for clarifying

            Show
            hemanglavana HemangLavana added a comment - thx for clarifying
            Hide
            denisharder Dennis Harder added a comment -

            Questioning why this request was closed. I have the same comment as HemangLavana, this issue seems to be asking about throttling pipelines based on parameter values. I do not see anything in the throttle concurrent build pipeline documentation related to parameter throttling. Am I looking in the wrong place?

            https://github.com/jenkinsci/throttle-concurrent-builds-plugin#throttling-in-jenkins-pipeline

             

            Show
            denisharder Dennis Harder added a comment - Questioning why this request was closed. I have the same comment as HemangLavana , this issue seems to be asking about throttling pipelines based on parameter values. I do not see anything in the throttle concurrent build pipeline documentation related to parameter throttling. Am I looking in the wrong place? https://github.com/jenkinsci/throttle-concurrent-builds-plugin#throttling-in-jenkins-pipeline  
            Hide
            gundal Leeam Dagan added a comment -

            Oleg Nenashev

            Can this bug be reopened now?

            Pipeline support of TCB was added in 2.0 and 2.01

            However parameter based throttling was not added, or does this instead need to be a new feature request?

            I am leaning towards bug because there exists no way to do parameter throttling unless using freestyle, but as referenced here

            https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md

            TCB has indeed been added to pipeline support.

            Show
            gundal Leeam Dagan added a comment - Oleg Nenashev Can this bug be reopened now? Pipeline support of TCB was added in 2.0 and 2.01 However parameter based throttling was not added, or does this instead need to be a new feature request? I am leaning towards bug because there exists no way to do parameter throttling unless using freestyle, but as referenced here https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md TCB has indeed been added to pipeline support.
            Hide
            vinus079 Vinay Somashekar added a comment -

            Oleg Nenashev, Could you please look at this one? Now, this should be a bug and not Feature. 

             

            Show
            vinus079 Vinay Somashekar added a comment - Oleg Nenashev , Could you please look at this one? Now, this should be a bug and not Feature.   

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                alunsford Aaron Lunsford
              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: