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

pagerduty-plugin 0.6.1 throws exception on startup preventing use of pagerdutyChangeEvent step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pagerduty-plugin
    • None
    • Jenkins Version: 2.263.1
      pagerduty 0.6.1

      Attempting to execute the following step:

       

      pagerdutyChangeEvent(integrationKey: 'REDACTED')

       

      I discovered that the step is not available to Jenkins. Further investigation revealed that this stacktrace shows up on jenkins startup:

       

      ec 8 16:33:49 ip-10-168-107-173 [jenkins]: 2020-12-08 16:33:49.073+0000 [id=34]#011WARNING#011h.ExtensionFinder$GuiceFinder$FaultTolerantScope$1#error: Failed to instantiate Key[type=org.jenkinsci.plugins.pagerduty.pipeline.PagerDutyChangeEventStep$DescriptorImpl, annotation=[none]]; skipping this component
      Dec 8 16:33:49 ip-10-168-107-173 [jenkins]: java.lang.AssertionError: Outer class class org.jenkinsci.plugins.pagerduty.pipeline.PagerDutyChangeEventStep of class org.jenkinsci.plugins.pagerduty.pipeline.PagerDutyChangeEventStep$DescriptorImpl is not assignable to class org.jenkinsci.plugins.workflow.steps.Step. Perhaps wrong outer class?
      Dec 8 16:33:49 ip-10-168-107-173 [jenkins]: #011at hudson.model.Descriptor.<init>(Descriptor.java:289)

      I've submitted PR #41 to correct this.

       

      I've also cross-posted this defect in the git repo under #42

            alexanderlz Alexander Leibzon
            akrapfl Adam Krapfl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: