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

I cannot attach archived artifacts to a Confluence page, NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins: 2.387.1
      confluence-publisher: 136.vc30a_a_0d845d7

      [confluence] ParentId: 0
      [confluence] Uploading attachments to Confluence page: Certificates status
      [confluence] Found 1 archived artifact(s) to upload to Confluence...
      [confluence] Uploading 1 file(s) to Confluence...
      [confluence]  - Uploading file: certificates.json (application/json) 

      And error:

      java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.api.model.pagination.PageResponse.getResults()" because "result" is null
      	at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performAttachments(ConfluencePublisher.java:347)
      	at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:429)
      	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.base/java.lang.Thread.run(Unknown Source)
      Finished: FAILURE 
      
      
      

      Manually, I can attach a json file.

       

      Jenkins:

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

              Created:
              Updated: