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

On linux , when check Include files,can't copy sub file to the linux dir

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • htmlpublisher-plugin
    • None

          [JENKINS-62893] On linux , when check Include files,can't copy sub file to the linux dir

          Can you clear up whether this is Windows or Linux as you've said its Linux but the filepath in the exception looks to be a combination of a Windows & a Linux path. Can you please provide what your HTML publisher config is as well?

          Richard Bywater added a comment - Can you clear up whether this is Windows or Linux as you've said its Linux but the filepath in the exception looks to be a combination of a Windows & a Linux path. Can you please provide what your HTML publisher config is as well?

          fang zheng added a comment -

          Experiment 1: Jenkins is installed on the Linux server and nodes are created in Jenkins, which is connected to the windows server. The automatic script is executed on the windows machine, and the test report is generated on the windows machine after the execution. I need to read the log on the server to Jenkins through HTML publisher, and then view it on Jenkins platform. The test report directory contains subdirectories. When HTML publisher interrogates the files, an error is reported when reading the subdirectory files on windows.

          fang zheng added a comment - Experiment 1: Jenkins is installed on the Linux server and nodes are created in Jenkins, which is connected to the windows server. The automatic script is executed on the windows machine, and the test report is generated on the windows machine after the execution. I need to read the log on the server to Jenkins through HTML publisher, and then view it on Jenkins platform. The test report directory contains subdirectories. When HTML publisher interrogates the files, an error is reported when reading the subdirectory files on windows.

          Just taking a look now and I think the issue is that you appear to be trying to use files that are not in the workspace for archiving purposes. Whilst in theory I think it would work if you used a absolute path relating to the server that Jenkins server is running on, it's not really a supported config and instead the path used should be relative to the workspace.

          I'd try, as part of your build, copying the files from D:\test\log into the workspace (e.g. into <workspace>\log) and then using (e.g) `log` as the HTML directory to archive and see if that helps.

          Richard Bywater added a comment - Just taking a look now and I think the issue is that you appear to be trying to use files that are not in the workspace for archiving purposes. Whilst in theory I think it would work if you used a absolute path relating to the server that Jenkins server is running on, it's not really a supported config and instead the path used should be relative to the workspace. I'd try, as part of your build, copying the files from D:\test\log into the workspace (e.g. into <workspace>\log) and then using (e.g) `log` as the HTML directory to archive and see if that helps.

            r2b2_nz Richard Bywater
            icafe fang zheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: