• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • jira-plugin

      When run via timers or Github pull requests (SCM triggers), Jenkins fails intermittently about 50% of the time with a java.io.Exception while attempting to parse the Git changelog.

      The same job runs fine when triggered manually.

      {{ Error output:}}

      {{ 07:24:14 > git rev-list ea5911bc9883d34d023640978ed98ff9192bb155 # timeout=10}}
      {{ 07:24:14 java.lang.NullPointerException}}
      {{ 07:24:14 at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:289)}}
      {{ 07:24:14 at hudson.plugins.jira.JiraSite.getSession(JiraSite.java:272)}}
      {{ 07:24:14 at io.jenkins.blueocean.service.embedded.jira.JiraSCMListener.onChangeLogParsed(JiraSCMListener.java:38)}}
      {{ 07:24:14 at hudson.model.listeners.SCMListener.onChangeLogParsed(SCMListener.java:120)}}
      {{ 07:24:14 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590)}}
      {{ 07:24:14 Caused: java.io.IOException: Failed to parse changelog}}
      {{ 07:24:14 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:592)}}
      {{ 07:24:14 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)}}
      {{ 07:24:14 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)}}
      {{ 07:24:14 at hudson.model.Run.execute(Run.java:1724)}}
      {{ 07:24:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ 07:24:14 at hudson.model.ResourceController.execute(ResourceController.java:97)}}
      {{ 07:24:14 at hudson.model.Executor.run(Executor.java:421)}}

          [JENKINS-48608] NPE when empty JIRA site is saved

          Mark Waite added a comment -

          Based on that stack trace element at JiraSite line 289, I suspect this is an issue with the Jira plugin, not with the git plugin.

          Reassigned to the jira-plugin

          Mark Waite added a comment - Based on that stack trace element at JiraSite line 289 , I suspect this is an issue with the Jira plugin, not with the git plugin. Reassigned to the jira-plugin

          That's interesting, do you have a JIRA site configured and working in other builds?

          Radek Antoniuk added a comment - That's interesting, do you have a JIRA site configured and working in other builds?

          Not really. We do use JIRA, but JIRA is currently not configured in this particular Jenkins instance for any build.

          Anupam Sengupta added a comment - Not really. We do use JIRA, but JIRA is currently not configured in this particular Jenkins instance for any build.

          So it seems you configured an empty JIRA instance, can you delete it with the button below and try if that solves the issue?

          Radek Antoniuk added a comment - So it seems you configured an empty JIRA instance, can you delete it with the button below and try if that solves the issue?

          warden, I have now deleted the JIRA config block in the system settings. The build when triggered manually works fine, but will wait and confirm back tomorrow on the scheduled build status (as that is the one which was failing till now).

           

           

          Anupam Sengupta added a comment - warden , I have now deleted the JIRA config block in the system settings. The build when triggered manually works  fine , but will wait and confirm back tomorrow on the scheduled build status (as that is the one which was failing till now).    

          warden, the nightly build on schedule also ran fine after the deletion of the empty JIRA block.

           

          So looks like that was the failure cause.  Thanks for the pointer in resolving the issue.

          Anupam Sengupta added a comment - warden , the nightly build on schedule also ran fine after the deletion of the empty JIRA block.   So looks like that was the failure cause.  Thanks for the pointer in resolving the issue.

            Unassigned Unassigned
            anupamsg Anupam Sengupta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: