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

Confluence Publisher for Confluence 5x

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be great if the plugin would get an upgrade to work with Confluence- Versions higher than 4.x.

        Attachments

          Activity

          Hide
          zeulatek Peter Lopez added a comment - - edited

          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

          Show
          zeulatek Peter Lopez added a comment - - edited 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
          Hide
          qisylvia Sylvia Qi added a comment - - edited

          I am trying this plugin. I needed a tool to update a confluence page with some messages when a build is successful. This plugin seems to be the right choice however it does not work as expected against Confluence 5.10.

          The text entered in the Wiki Markup Replacement section is not being rendered as wiki markups. Instead, the text appears as plain text on the confluence page. For example, if I type "asterisk strong asterisk" directly on the confluence page I get bolded "strong". But if enter the same in the Wiki Markup Replacement field of the plugin, it appears as "asterisk strong asterisk" on the confluence page , no rendering is being done. Because of this, the messages written to the confluence page are very hard to read because no formatting is being done and no line breaks. Is this plugin not updated to work with Confluence 5 or am I missing something? Thanks in advance for your help.

          Note I spelled out asterisk above to avoid wiki markup rendering. The actual character entered was *

          Show
          qisylvia Sylvia Qi added a comment - - edited I am trying this plugin. I needed a tool to update a confluence page with some messages when a build is successful. This plugin seems to be the right choice however it does not work as expected against Confluence 5.10. The text entered in the Wiki Markup Replacement section is not being rendered as wiki markups. Instead, the text appears as plain text on the confluence page. For example, if I type "asterisk strong asterisk" directly on the confluence page I get bolded "strong". But if enter the same in the Wiki Markup Replacement field of the plugin, it appears as "asterisk strong asterisk" on the confluence page , no rendering is being done. Because of this, the messages written to the confluence page are very hard to read because no formatting is being done and no line breaks. Is this plugin not updated to work with Confluence 5 or am I missing something? Thanks in advance for your help. Note I spelled out asterisk above to avoid wiki markup rendering. The actual character entered was *
          Hide
          jhansche Joe Hansche added a comment - - edited

          Sylvia Qi, Confluence 5 does not store pages in wiki format anymore. It is now stored in an XHTML format.

          Instead of entering your text using wiki markup, it should be in XHTML format. Thus instead of "*strong*", it should be "<b>strong</b>" or "<strong>strong</strong>".

          Show
          jhansche Joe Hansche added a comment - - edited Sylvia Qi , Confluence 5 does not store pages in wiki format anymore. It is now stored in an XHTML format. Instead of entering your text using wiki markup, it should be in XHTML format. Thus instead of " *strong* ", it should be " <b>strong</b> " or " <strong>strong</strong> ".
          Hide
          qisylvia Sylvia Qi added a comment -

          Hi Joe, the XHTML format works perfectly! Thanks very much for your quick response.

          Show
          qisylvia Sylvia Qi added a comment - Hi Joe, the XHTML format works perfectly! Thanks very much for your quick response.
          Hide
          longmingxing mingxing long added a comment - - edited

          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      

          Show
          longmingxing mingxing long added a comment - - edited 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      

            People

            • Assignee:
              jhansche Joe Hansche
              Reporter:
              kbauke Keven Bauke
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: