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

After chaging the home directory of Jenkins, htmlpublisher plugin is archiving to the old directory and not the new path /home/jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After changing the home directory of Jenkins from /var/lib/jenkins/ to /home/jenkins, htmlpublisher plugin is archiving to the old directory and not the updated path /home/jenkins

       

      Update 06/06, 17:58 PST:

      complete removal and re-installing does NOT work

        Attachments

          Activity

          Hide
          r2b2_nz Richard Bywater added a comment -

          Thanks ray kim for raising the issue. However I'm a little confused - from reading your description it appears that you have moved Jenkins from /var/lib/jenkins to /home/jenkins and the screenshot you have provided seems to show it writing to the correct /home/jenkins location? Are you able to clarify the issue you are seeing? (I assume /home/jenkins is not just a symlink to /var/lib/jenkins as that would obviously make the results available at "both" locations)

          Show
          r2b2_nz Richard Bywater added a comment - Thanks ray kim for raising the issue. However I'm a little confused - from reading your description it appears that you have moved Jenkins from /var/lib/jenkins to /home/jenkins and the screenshot you have provided seems to show it writing to the correct /home/jenkins location? Are you able to clarify the issue you are seeing? (I assume /home/jenkins is not just a symlink to /var/lib/jenkins as that would obviously make the results available at "both" locations)
          Hide
          rkim12 ray kim added a comment - - edited

          Richard Bywater , I'm an OS noob and made it a symlink from /home/jenkins to /var/lib/jenkins. Do you know how I can get htmlpublisher-plugin to not archive the .html file to the original /var/lib/jenkins/*/.html file ? I tried making it a hard link, but that obviously doesn't work for directories, so I'm a little stuck. 

           

          Update: 

          • the .html report does exist in both places, but the icon that links to the htmlreport does not show on the left panel. How can I make it link correctly ?
          Show
          rkim12 ray kim added a comment - - edited Richard Bywater , I'm an OS noob and made it a symlink from /home/jenkins to /var/lib/jenkins. Do you know how I can get htmlpublisher-plugin to not archive the .html file to the original /var/lib/jenkins/* / .html file ? I tried making it a hard link, but that obviously doesn't work for directories, so I'm a little stuck.    Update:  the .html report does exist in both places, but the icon that links to the htmlreport does not show on the left panel. How can I make it link correctly ?
          Hide
          quas Jakub Pawlinski added a comment - - edited

          Got quite similar issue - windows jenkins node, but jenkins folder is on D: drive

          Job is publishing two things, first works fine, the other fails.

          writeFile file: 'changes.html', text: SummaryChangesLog
          publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: env.WORKSPACE, reportFiles: "changes.html", reportName: 'Summary Changes', reportTitles: ''])
          

           above does publish single file and does not fail, while does not work too:

          [Pipeline] publishHTML  
          00:21:16 - 31 Oct [htmlpublisher] Archiving HTML reports... 
          00:21:16 - 31 Oct [htmlpublisher] Archiving at BUILD level d:\jenkins\workspace\Interfaces\interfaces_21dev_ukcam to C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Summary_20Changes
          

          the c drive path is not existing and its pretty odd, there is no jobs folder in jenkins at all, it looks like path mangled with url

           

          the other publish does the folder and it fails

          publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: TestsLocation, reportFiles: "Results.html", reportName: 'Test Results', reportTitles: ''])
          

          where TestsLocation is set to

          \\\\companyftp\\Week\\Interfaces21dev-Test-Results

          with outcome: 

          [Pipeline] publishHTML 
          06:15:57 - 31 Oct [htmlpublisher] Archiving HTML reports... 
          06:15:57 - 31 Oct [htmlpublisher] Archiving at BUILD level \\companyftp\Week\Interfaces21dev-Test-Results\Int2D to C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Test_20Results 
          06:15:57 - 31 Oct ERROR: Directory '\\companyftp\Week\Interfaces21dev-Test-Results\Int2D' exists but failed copying to 'C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Test_20Results'.
          

           

          Show
          quas Jakub Pawlinski added a comment - - edited Got quite similar issue - windows jenkins node, but jenkins folder is on D: drive Job is publishing two things, first works fine, the other fails. writeFile file: 'changes.html' , text: SummaryChangesLog publishHTML([allowMissing: false , alwaysLinkToLastBuild: true , keepAll: true , reportDir: env.WORKSPACE, reportFiles: "changes.html" , reportName: 'Summary Changes' , reportTitles: ''])  above does publish single file and does not fail, while does not work too: [Pipeline] publishHTML   00:21:16 - 31 Oct [htmlpublisher] Archiving HTML reports... 00:21:16 - 31 Oct [htmlpublisher] Archiving at BUILD level d:\jenkins\workspace\Interfaces\interfaces_21dev_ukcam to C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Summary_20Changes the c drive path is not existing and its pretty odd, there is no jobs folder in jenkins at all, it looks like path mangled with url   the other publish does the folder and it fails publishHTML([allowMissing: false , alwaysLinkToLastBuild: true , keepAll: true , reportDir: TestsLocation, reportFiles: "Results.html" , reportName: 'Test Results' , reportTitles: '']) where TestsLocation is set to \\\\companyftp\\Week\\Interfaces21dev-Test-Results with outcome:  [Pipeline] publishHTML 06:15:57 - 31 Oct [htmlpublisher] Archiving HTML reports... 06:15:57 - 31 Oct [htmlpublisher] Archiving at BUILD level \\companyftp\Week\Interfaces21dev-Test-Results\Int2D to C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Test_20Results 06:15:57 - 31 Oct ERROR: Directory '\\companyftp\Week\Interfaces21dev-Test-Results\Int2D' exists but failed copying to 'C:\Jenkins\jobs\Interfaces\jobs\interfaces_21dev_ukcam\builds\17\htmlreports\Test_20Results' .  
          Hide
          quas Jakub Pawlinski added a comment -

          Ok, after longer investigation it is not related - just error output is messing up 

          this error actually means that source location is empty.

          Show
          quas Jakub Pawlinski added a comment - Ok, after longer investigation it is not related - just error output is messing up  this error actually means that source location is empty.
          Hide
          r2b2_nz Richard Bywater added a comment -

          Just to confirm, there is issue to be solved?

          Show
          r2b2_nz Richard Bywater added a comment - Just to confirm, there is issue to be solved?
          Hide
          quas Jakub Pawlinski added a comment -

          It is solved, thanks

          Show
          quas Jakub Pawlinski added a comment - It is solved, thanks

            People

            Assignee:
            martin_stolle Martin Stolle
            Reporter:
            rkim12 ray kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: