-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins LTS 2.32.2
branch-api:1.11.1 'Branch API Plugin'
workflow-aggregator:2.4 'Pipeline'
In the snippet generator, the following configuration...
... returns:
properties([[$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], [$class: 'ThrottleJobProperty', categories: [], limitOneJobWithMatchingParams: false, maxConcurrentPerNode: 0, maxConcurrentTotal: 0, paramsToUseForLimit: '', throttleEnabled: false, throttleOption: 'project'], [$class: 'JobPropertyImpl', throttle: [count: 1, durationName: 'hour']], pipelineTriggers([])])
In the console output after running that snippet, it returns:
... Caused by: java.lang.UnsupportedOperationException: JobPropertyImpl as a class hudson.model.JobProperty could mean either jenkins.branch.RateLimitBranchProperty$JobPropertyImpl or com.cloudbees.hudson.plugins.modeling.impl.jobTemplate.JobPropertyImpl ... Finished: FAILURE
It is failing in recognized JobPropertyImpl
Workaround: change the above snippet for the following one which works:
properties([[$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], [$class: 'ThrottleJobProperty', categories: [], limitOneJobWithMatchingParams: false, maxConcurrentPerNode: 0, maxConcurrentTotal: 0, paramsToUseForLimit: '', throttleEnabled: false, throttleOption: 'project'], [$class: 'jenkins.branch.RateLimitBranchProperty$JobPropertyImpl', throttle: [count: 2, durationName: 'day']], pipelineTriggers([])])
- is duplicated by
-
JENKINS-32476 Code Snippet Generator for 'step' should use class FQDN in case of collisions
- Resolved
- is related to
-
JENKINS-45130 When ambiguous classes are in a list / array they are given their simple name not FQCN
- Closed
- links to