-
Task
-
Resolution: Unresolved
-
Minor
I am trying to use Exclusion plugin in Pipeline; however, when I try to use IdAllocator, Jenkins displays an error "no DataBoundConstructor for IdAllocator"
wrap([$class: 'IdAllocator', ids: 'LOCK']) { step([$class: 'CriticalBlockStart']) echo ('hello') step([$class: 'CriticalBlockEnd']) }
I took a look at the Github code. Only 'CriticalBlockStart' and 'CriticalBlockEnd' used '@DataBoundConstructor' for their constructors. That could be the reason why 'CriticalBlockStart' and 'CriticalBlockEnd' showed up in 'step' of Pipeline Syntax Snippet and not 'IdAllocator' in 'wrap'.
[JENKINS-45704] Exclusion plugin fails when using IdAllocator wrapper in Pipeline
Summary | Original: Exclusion plugin does not have IdAllocator for pipeline | New: Exclusion plugin fails when using IdAllocator wrapper in Pipeline |
Assignee | Original: Peter Zhang [ pzhang ] |