Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45704

Exclusion plugin fails when using IdAllocator wrapper in Pipeline

      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

          There are no comments yet on this issue.

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

              Created:
              Updated: