-
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'.