i use this plugin to upload an file to a confluence page. I want to update this file every successful build, so chose an option which is named "relaced attachment". Plugin is version2.0, and confluence is version6.2.1.In this case, uploading a file which not exist is ok, but uploading the file which already exists gets the error which is as follow:
[confluence] Upload attachment to Confluence page:****
Evaluating file(s) pattern:****
Found 1 workspace artifact(s) to upload to Confluence
Upload 1 file(s) to Confluence
ERROR: Build step failed with exception
java.lang.UnsuporttedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at java.util.AbstractCollection.remove(AbstractCollection.java:293)
at com.myyearbook.hudson.plugins.ConfluencePblisher.performAttachments(ConfluencePblisher.java:442)
at com.myyearbook.hudson.plugins.ConfluencePblisher.perform(ConfluencePblisher.java:321)
at hudson.tasks.BuildStepcomptibilityLayer.perform(BuildStepcomptibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildException.perform(AbstractBuildException.java:779)
at hudson.model.AbstractBuild$AbstractBuildException.performAllBuild(AbstractBuild.java:720)
at hudson.model.Build$BuildException.post2(Build.java:486)
at hudson.model.AbstractBuild$AbstractBuildException.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1753)
at hudson.model.freeStyleBuildRun.run(freeStyleBuildRun.java:43)
at hudson.ResourceController.execute(ResourceController.java:98)
at hudson.Executor.run(Executor.java:405)
Build step publish Confluence marked build as failed
I have a verified issue with version 5.9.9 when pushing artifacts
URL pathing is now using the key instead of the space ID
Previous pattern
http://confluence.example.com/display/Space/Page
New pattern in 5.9.9 (NOTE:Space=8082
http://confluence.example.com/display/8082/Page
From the build step, I add the key, similar to Jira, which resolves to the space
Space
8082
Help for feature: Space
OK: Zeulatek
[confluence] Unable to locate page: 8082/. Attempting to create the page now...
[confluence] Uploading attachments to Confluence page: http://0.0.0.0:8090/pages/viewpage.action?pageId=964046
ERROR: Build step failed with exception
java.lang.NullPointerException
at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.findArtifacts(ConfluencePublisher.java:445)
at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.performAttachments(ConfluencePublisher.java:182)
at com.myyearbook.hudson.plugins.confluence.ConfluencePublisher.perform(ConfluencePublisher.java:314)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Build step 'Publish to Confluence' marked build as failure
Finished: FAILURE