Exclusion plugin fails when using IdAllocator wrapper in Pipeline

XMLWordPrintable

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

            Assignee:
            Unassigned
            Reporter:
            Peter Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: