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

Artifacts archiver throws IOException2 ENOENT for files with special file names

    Details

    • Similar Issues:

      Description

      When trying to archive some files I get the following exception thrown:

      00:57:00.704 ERROR: Failed to archive artifacts: git_stats/
      00:57:00.927 hudson.util.IOException2: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT
      00:57:01.003 at hudson.FilePath.copyRecursiveTo(FilePath.java:1942)
      00:57:01.045 at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
      00:57:01.045 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      00:57:02.258 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun.conditionalRun(BuildStepRunner.java:264)
      00:57:02.259 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      00:57:02.260 at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:88)
      00:57:02.260 at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:96)
      00:57:02.260 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
      00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
      00:57:02.260 at hudson.model.Build$BuildExecution.post2(Build.java:183)
      00:57:02.260 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
      00:57:02.260 at hudson.model.Run.execute(Run.java:1600)
      00:57:02.260 at hudson.plugins.project_inheritance.projects.InheritanceBuild.run(InheritanceBuild.java:61)
      00:57:02.260 at hudson.model.ResourceController.execute(ResourceController.java:88)
      00:57:02.260 at hudson.model.Executor.run(Executor.java:237)
      00:57:02.260 Caused by: java.util.concurrent.ExecutionException: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT
      00:57:02.260 at hudson.remoting.Channel$4.adapt(Channel.java:705)
      00:57:02.260 at hudson.remoting.Channel$4.adapt(Channel.java:700)
      00:57:02.260 at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      00:57:02.260 at hudson.FilePath.copyRecursiveTo(FilePath.java:1940)
      00:57:02.260 ... 15 more
      00:57:02.260 Caused by: hudson.os.PosixException: /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andr��_ribes ENOENT
      00:57:02.260 at hudson.os.PosixAPI$1.error(PosixAPI.java:43)
      00:57:02.260 at org.jruby.ext.posix.LinuxPOSIX.stat(LinuxPOSIX.java:89)
      00:57:02.260 at hudson.util.IOUtils.mode(IOUtils.java:125)
      00:57:02.260 at hudson.util.io.TarArchiver.visit(TarArchiver.java:102)
      00:57:02.260 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
      00:57:02.260 at hudson.FilePath.writeToTar(FilePath.java:1978)
      00:57:02.260 at hudson.FilePath.access$1000(FilePath.java:168)
      00:57:02.260 at hudson.FilePath$36.invoke(FilePath.java:1919)
      00:57:02.260 at hudson.FilePath$36.invoke(FilePath.java:1915)
      00:57:02.260 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
      00:57:02.260 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      00:57:02.260 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      00:57:02.260 at hudson.remoting.Request$2.run(Request.java:326)
      00:57:02.260 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      00:57:02.260 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      00:57:02.260 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      00:57:02.260 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      00:57:02.260 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      00:57:02.260 at java.lang.Thread.run(Thread.java:722)
      00:57:02.260 Build step 'Flexible publish' changed build result to FAILURE

      The filename on the shell looks like this:
      /srv/build/workspace/nightly_efl_gcc_x86_64/git_stats/authors/andré_ribes

        Attachments

          Activity

          Hide
          stefan Stefan Schmidt added a comment -

          Just as additional information. -Dfile.encoding=UTF-8 is set for the nodes

          Show
          stefan Stefan Schmidt added a comment - Just as additional information. -Dfile.encoding=UTF-8 is set for the nodes
          Hide
          gbois Gregory Boissinot added a comment -

          It is not an ArifactDeployer plugin issue.
          It is a charset issue.
          Check your JAVA_OPTS environment variable. You can use
          set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"

          Show
          gbois Gregory Boissinot added a comment - It is not an ArifactDeployer plugin issue. It is a charset issue. Check your JAVA_OPTS environment variable. You can use set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              stefan Stefan Schmidt
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: