• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • jira-plugin

      The functionality from JENKINS-13652 hits a NullPointerException while looking up workflow actions:

      FATAL: null
      java.lang.NullPointerException
      	at hudson.plugins.jira.JiraSession.getActionIdForIssue(JiraSession.java:293)
      	at hudson.plugins.jira.JiraSite.progressMatchingIssues(JiraSite.java:472)
      	at hudson.plugins.jira.JiraIssueUpdateBuilder.perform(JiraIssueUpdateBuilder.java:96)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      	at hudson.model.Build$RunnerImpl.build(Build.java:178)
      	at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
      	at hudson.model.Run.run(Run.java:1438)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:239)

          [JENKINS-13998] NPE while looking up workflow actions

          Joe Hansche added a comment -

          This happens when there are no workflow actions available to the Jenkins user. For some reason the SOAP API responds with a null entry instead of an empty array. The workaround is to grant the Jenkins user access to all necessary workflow steps (this is a requirement anyway!). I'm making a new change to at least handle this gracefully.

          Joe Hansche added a comment - This happens when there are no workflow actions available to the Jenkins user. For some reason the SOAP API responds with a null entry instead of an empty array. The workaround is to grant the Jenkins user access to all necessary workflow steps (this is a requirement anyway!). I'm making a new change to at least handle this gracefully.

          Code changed in jenkins
          User: Joe Hansche
          Path:
          src/main/java/hudson/plugins/jira/JiraSession.java
          src/main/resources/hudson/plugins/jira/JiraIssueUpdateBuilder/help-workflowActionName.html
          src/main/resources/hudson/plugins/jira/Messages.properties
          http://jenkins-ci.org/commit/jira-plugin/05a4e5cf2dbd8ca6849a8c2beeeb4e7fa5597a16
          Log:
          [FIXED JENKINS-13998] Fix NPE when Jenkins user does not have access to perform any workflow actions.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joe Hansche Path: src/main/java/hudson/plugins/jira/JiraSession.java src/main/resources/hudson/plugins/jira/JiraIssueUpdateBuilder/help-workflowActionName.html src/main/resources/hudson/plugins/jira/Messages.properties http://jenkins-ci.org/commit/jira-plugin/05a4e5cf2dbd8ca6849a8c2beeeb4e7fa5597a16 Log: [FIXED JENKINS-13998] Fix NPE when Jenkins user does not have access to perform any workflow actions.

            jhansche Joe Hansche
            jhansche Joe Hansche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: