|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
[JIRA] (JENKINS-13202) Artifact archiving from an ssh slave fails if symlinks are present
brett.dellegra...@gmail.com (JIRA) Tue, 30 Oct 2012 07:48:51 -0700
- [JIRA] (JENKINS-13202) Artifact archivi... jgl...@cloudbees.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... smyau...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... smyau...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... markusschult...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... scm_issue_l...@java.net (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... smyau...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... jgl...@cloudbees.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... brett.dellegra...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... brett.dellegra...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... jgl...@cloudbees.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... brett.dellegra...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... jgl...@cloudbees.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... smyau...@gmail.com (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... scm_issue_l...@java.net (JIRA)
- [JIRA] (JENKINS-13202) Artifact ar... dogf...@java.net (JIRA)
@Jesse Glick and others.
I've applied the patch on AIX-6.1 slave (Windows master) Running 1.466.3-SNAPSHOT (i.e. 1.466.2 patched)
http://jenkins-ci.org/commit/jenkins/af9977c1b28c2e212f707ab88b4f2ac561e37e50
However the problem is still occurring. I've got a test job which simply attempts to archive dummy stuff. the result is:
[test-archive-artefacts-aix] $ /bin/bash -ex /home/apps/DP/jenkins/tmp/hudson2194465448671283236.sh
+ mkdir -p a/b a/c dist
+ touch a/1.txt a/b/2.txt
+ ln -sf a/1.txt a/c/3.txt
+ /opt/freeware/bin/tar -czf dist/test.tar.gz a/
Archiving artifacts
ERROR: Failed to archive artifacts: dist/*.tar.gz
hudson.util.IOException2: java.lang.UnsupportedOperationException
at hudson.FilePath.copyRecursiveTo(FilePath.java:1784)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:116)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
at hudson.model.Run.run(Run.java:1463)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
Caused by: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
at hudson.remoting.Channel$4.adapt(Channel.java:696)
at hudson.remoting.Channel$4.adapt(Channel.java:691)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1782)
... 10 more
Caused by: java.lang.UnsupportedOperationException
at hudson.os.PosixAPI$1.getCurrentWorkingDirectory(PosixAPI.java:59)
at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:59)
at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)
at org.jruby.ext.posix.JavaLibCHelper.readlink(JavaLibCHelper.java:196)
at org.jruby.ext.posix.JavaPOSIX.readlink(JavaPOSIX.java:160)
at hudson.Util.resolveSymlink(Util.java:1067)
at hudson.util.DirScanner$Glob.scan(DirScanner.java:121)
at hudson.FilePath.writeToTar(FilePath.java:1820)
at hudson.FilePath.access$1000(FilePath.java:166)
at hudson.FilePath$36.invoke(FilePath.java:1761)
at hudson.FilePath$36.invoke(FilePath.java:1758)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2193)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at hudson.remoting.Engine$1$1.run(Engine.java:60)
at java.lang.Thread.run(Thread.java:736)
Finished: SUCCESS
Looks like its failing to find 'readlink'