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

Unable to publish artifacts to home page of a confluence space due to NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.460
      Atlassian Confluence 4.0
      Windows 2003
      User with good rights configured at confluence side
      Confluence site configured at Jenkins side
    • Similar Issues:

      Description

      [confluence] Uploading attachments to Confluence page: http://confluence.xxx.com/display/SOFTRELEASE/Home
      ERROR: Publisher com.myyearbook.hudson.plugins.confluence.ConfluencePublisher aborted due to exception
      java.lang.NullPointerException
      at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.findArtifacts(ConfluencePublisher.java:402)
      at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performAttachments(ConfluencePublisher.java:170)
      at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:291)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627)
      at hudson.model.Run.run(Run.java:1446)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
      Finished: FAILURE

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Joe Hansche
          Path:
          src/main/java/com/myyearbook/hudson/plugins/confluence/ConfluencePublisher.java
          http://jenkins-ci.org/commit/confluence-publisher-plugin/c712a3c4af6e444febb2b5a3c50f69e1abcf9339
          Log:
          [Fix JENKINS-13569] Don't look for artifacts if there are none.

          If "attach archived artifacts" is checked, but the "Archive the artifacts"
          post-build option is not, attemping to look for artifacts results in
          a NPE.

          Compare: https://github.com/jenkinsci/confluence-publisher-plugin/compare/52a0e81...c712a3c

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joe Hansche Path: src/main/java/com/myyearbook/hudson/plugins/confluence/ConfluencePublisher.java http://jenkins-ci.org/commit/confluence-publisher-plugin/c712a3c4af6e444febb2b5a3c50f69e1abcf9339 Log: [Fix JENKINS-13569] Don't look for artifacts if there are none. If "attach archived artifacts" is checked, but the "Archive the artifacts" post-build option is not, attemping to look for artifacts results in a NPE. Compare: https://github.com/jenkinsci/confluence-publisher-plugin/compare/52a0e81...c712a3c
          Hide
          jhansche Joe Hansche added a comment -

          Fixed and released in 1.5

          Show
          jhansche Joe Hansche added a comment - Fixed and released in 1.5

            People

            • Assignee:
              madriman madriman madriman
              Reporter:
              madriman madriman madriman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: