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

Possible regression: rateLimitBuilds() syntax not accepted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: branch-api-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.235.5, all plugins at latest version as of 2020-09-02.
    • Similar Issues:

      Description

      I was trying to add a job that takes ~20 hours to run so I decided to limit it to one run per week, but if I use the suggested snippet properties([rateLimitBuilds([count: 1, durationName: 'week', userBoost: true])]) I get the following error and it's not applied:

      WARNING: Unknown parameter(s) found for class type 'jenkins.branch.RateLimitBranchProperty$JobPropertyImpl': count,durationName,userBoost

      Searching for other examples it appears that the correct syntax is rateLimitBuilds(throttle: [count: 1, durationName: 'week', userBoost: true]).

      I spent many hours trying to debug this error message and would appreciate it if the snippet generator was fixed (or the suggested syntax was also accepted) so that others don't also run into this issue.

      I feel like this syntax worked correctly in the past, so this might be a regression introduced in https://github.com/jenkinsci/branch-api-plugin/commit/97f7edb2af0a5dcba423ac70efeb9b9851b58524#diff-ca2ff61b92524e082e6ac9d90496948f ?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            arichardson Alex Richardson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: