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 ?