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

Jenkins 2.168 prevent HTML Publisher to copy html report from agent to master

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      Hi there,

       

      After updating Jenkins to version 2.168 I started experiencing build failure using the html publisher plugin

       

      publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'target', reportFiles: 'docs/index.html', reportName: 'SmartRoaming API', reportTitles: ''])

       

      Would result into the following console output and build failure:

       

      08:26:47  [htmlpublisher] Archiving at BUILD level C:/Jenkins2/workspace/t_RDSFTUKTCL_comms-app-api_PR-12/smart-roaming-api/target to /var/lib/jenkins/jobs/Bitbucket Project/jobs/RDSFTUKTCL/jobs/comms-app-api/branches/PR-12/builds/14/htmlreports/SmartRoaming_20API
      08:26:47  ERROR: Directory 'C:/Jenkins2/workspace/t_RDSFTUKTCL_comms-app-api_PR-12/smart-roaming-api/target' exists but failed copying to '/var/lib/jenkins/jobs/Bitbucket Project/jobs/RDSFTUKTCL/jobs/comms-app-api/branches/PR-12/builds/14/htmlreports/SmartRoaming_20API'. 

       

      Downgrading Jenkins to version 2.167 fixes the issue.

       

      Would you please advise/support me with that matter?

       

       

        Attachments

          Issue Links

            Activity

            Hide
            r2b2_nz Richard Bywater added a comment -

            Remi Van Goethem are you able to confirm if this is still an issue in newer versions of Jenkins? (Wadeck Follonier are you able to confirm that it should be fixed?)

            Show
            r2b2_nz Richard Bywater added a comment - Remi Van Goethem are you able to confirm if this is still an issue in newer versions of Jenkins? ( Wadeck Follonier are you able to confirm that it should be fixed?)
            Hide
            rvangoethem Remi Van Goethem added a comment -

            Hi Richard Bywater, I cannot confirm this because we worked around the problem by avoiding using simlink... 

            You can check if the "fix" in place for Docker is still present on latest version because it is definitely responsible for the issue observed.

            Show
            rvangoethem Remi Van Goethem added a comment - Hi  Richard Bywater , I cannot confirm this because we worked around the problem by avoiding using simlink...  You can check if the "fix" in place for Docker is still present on latest version because it is definitely responsible for the issue observed.
            Hide
            wfollonier Wadeck Follonier added a comment -

            Sorry Richard Bywater but I did not get any time to work on that issue, it's still in our backlog but not a priority yet.
            Avoiding using symlinks is a good strategy from my PoV.

            Show
            wfollonier Wadeck Follonier added a comment - Sorry Richard Bywater but I did not get any time to work on that issue, it's still in our backlog but not a priority yet. Avoiding using symlinks is a good strategy from my PoV.
            Hide
            jthompson Jeff Thompson added a comment - - edited

            (I deleted this comment because it looks like I misread who was saying what. I'll try again.)

            Show
            jthompson Jeff Thompson added a comment - - edited (I deleted this comment because it looks like I misread who was saying what. I'll try again.)
            Hide
            jthompson Jeff Thompson added a comment -

            This does look like something caused by a change in Jenkins 2.168. I don't think it has anything to do with htmlpublisher plugin, so I've removed it from the components field. Specifically it is highly likely that the change for JENKINS-56114 caused this. This is similar to JENKINS-56249. Though the exact manifestations and cause are different, they concern the same areas of code.

            I'll see if I can figure something out to make it work better. It may take a while to get that change put together.

             

             

            Show
            jthompson Jeff Thompson added a comment - This does look like something caused by a change in Jenkins 2.168. I don't think it has anything to do with htmlpublisher plugin, so I've removed it from the components field. Specifically it is highly likely that the change for  JENKINS-56114  caused this. This is similar to  JENKINS-56249 . Though the exact manifestations and cause are different, they concern the same areas of code. I'll see if I can figure something out to make it work better. It may take a while to get that change put together.    

              People

              Assignee:
              wfollonier Wadeck Follonier
              Reporter:
              rvangoethem Remi Van Goethem
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: