Details
Description
We have a slave running on an HP Itanium host (ver. HP-UX unknown B.11.23 U ia64) where the readlink command does not exists. So when trying to resolve symlinks, slave agent fails with the following error:
hudson.util.IOException2: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
at hudson.FilePath.copyRecursiveTo(FilePath.java:1771)
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:711)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:686)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:633)
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.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
at hudson.remoting.Channel$3.adapt(Channel.java:679)
at hudson.remoting.Channel$3.adapt(Channel.java:674)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1769)
... 10 more
Caused by: java.io.IOException: Cannot run program "readlink" (in directory "/misc/home_tmp_dstk110/."): readlink: not found
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at org.jruby.ext.posix.util.ExecIt.run(ExecIt.java:61)
at org.jruby.ext.posix.util.ExecIt.runAndWait(ExecIt.java:51)
Attachments
Issue Links
- duplicates
-
JENKINS-13202 Artifact archiving from an ssh slave fails if symlinks are present
-
- Reopened
-
Activity
Field | Original Value | New Value |
---|---|---|
Environment | slave running on HP Itaniunm B.11.23 U ia64 with java 1.6 |
Jenkins ver. 1.467. slave running on HP Itaniunm B.11.23 U ia64 with java 1.6 |
Labels | hpitanium slave symlink | hpitanium readlink slave symlink |
Component/s | core [ 15593 ] | |
Component/s | build-publisher [ 15529 ] | |
Assignee | vjuranek [ vjuranek ] | |
Summary | readlink not working on HP Itanium | HP-UX doesn't have readlink |
Link | This issue duplicates JENKINS-13202 [ JENKINS-13202 ] |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Workflow | JNJira [ 144489 ] | JNJira + In-Review [ 191114 ] |
Do you know any equiavlent command in HP-UX that works instead of readlink?