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

Jira plugin: NoSuchMethodError: hudson.plugins.jira.JiraBuildAction.<init>(Lhudson/model/Run;Ljava/util/Set;)

      After upgrading jira-steps-plugin to 1.6.0 (also using latest blue ocean), the following exception occurs when using a jira step inside a workflow:

       java.lang.NoSuchMethodError: hudson.plugins.jira.JiraBuildAction.<init>(Lhudson/model/Run;Ljava/util/Set;)V
      17:28:43  	at io.jenkins.blueocean.service.embedded.jira.JiraSCMListener.onChangeLogParsed(JiraSCMListener.java:64)
      17:28:43  	at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:876)
      17:28:43  	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1000(WorkflowRun.java:137)
      17:28:43  	at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1168)
      17:28:43  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:150)
      17:28:43  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
      17:28:43  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
      17:28:43  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      17:28:43  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      17:28:43  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      17:28:43  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      17:28:43  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      17:28:43  	at java.lang.Thread.run(Thread.java:748)
      

      rolling back jira-steps-plugin to 1.5.5 seems to fix the issue

          [JENKINS-64148] Jira plugin: NoSuchMethodError: hudson.plugins.jira.JiraBuildAction.<init>(Lhudson/model/Run;Ljava/util/Set;)

          Juan Pablo Santos Rodríguez created issue -

          Fabian Holler added a comment - - edited

          We have builds failing with the same error message but we do not have the jira-steps plugin installed.
          We have the "jira" (v. 3.1.2) and the "jira-blueocean" (v. 1.24.32 plugin installed though. Our  jenkins version is 2.264

          When I retrigger a job that failed with this issue, all restarted builds succeeded so far. (wrong)

           

          Update: Downgrading the Jira plugin to version 3.1.1 seem to have solved the issue.
          It might have been introduced with https://github.com/jenkinsci/jira-plugin/pull/283

           

           

          Fabian Holler added a comment - - edited We have builds failing with the same error message but we do not have the jira-steps plugin installed. We have the "jira" (v. 3.1.2) and the "jira-blueocean" (v. 1.24.32 plugin installed though. Our  jenkins version is 2.264 When I retrigger a job that failed with this issue, all restarted builds succeeded so far. (wrong)   Update: Downgrading the Jira plugin to version 3.1.1 seem to have solved the issue. It might have been introduced with https://github.com/jenkinsci/jira-plugin/pull/283    

          Hi, after downgrading jira-steps-plugin we're still seeing the same stacktrace. Upon further examination, we came to the same conclusion as fho, seems that downgrading jira-plugin to 3.1.1 does the trick, will update the issue to reflect that.

          Juan Pablo Santos Rodríguez added a comment - Hi, after downgrading jira-steps-plugin we're still seeing the same stacktrace. Upon further examination, we came to the same conclusion as fho , seems that downgrading jira-plugin to 3.1.1 does the trick, will update the issue to reflect that.
          Juan Pablo Santos Rodríguez made changes -
          Component/s New: jira-plugin [ 15515 ]
          Component/s Original: jira-steps-plugin [ 21974 ]
          Assignee Original: Naresh Rayapati [ nrayapati ]
          Summary Original: Jira steps plugin: NoSuchMethodError: hudson.plugins.jira.JiraBuildAction.<init>(Lhudson/model/Run;Ljava/util/Set;) New: Jira plugin: NoSuchMethodError: hudson.plugins.jira.JiraBuildAction.<init>(Lhudson/model/Run;Ljava/util/Set;)
          Zhenlei Huang made changes -
          Remote Link New: This issue links to "PR-299 (Web Link)" [ 26220 ]

          Zhenlei Huang added a comment - - edited

          Zhenlei Huang added a comment - - edited Cross link github PR  https://github.com/jenkinsci/jira-plugin/pull/299 .

          Hi,

          Also seeing this problem when upgraded to 2.265 and Jira plugin 3.1.2.

          Downgrade Jira plugin to 3.1.1 seems to solve it for us too.

          Patrik Schalin added a comment - Hi, Also seeing this problem when upgraded to 2.265 and Jira plugin 3.1.2. Downgrade Jira plugin to 3.1.1 seems to solve it for us too.
          Jesse Glick made changes -
          Component/s New: blueocean-plugin [ 21481 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Jesse Glick made changes -
          Assignee New: Zhenlei Huang [ gmshake ]

            gmshake Zhenlei Huang
            juanpablo Juan Pablo Santos Rodríguez
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: