[
https://issues.jenkins-ci.org/browse/JENKINS-13026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sam tavakoli resolved JENKINS-13026.
------------------------------------
Resolution: Not A Defect
EnvInject isn't compatible with plugins who spawns shells. Set PATH-variables
through .bash_profile or .cshrc.user depending on your shell (bash or tcsh i.e)
> No such file or directory when trying to run cleartool
> ------------------------------------------------------
>
> Key: JENKINS-13026
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13026
> Project: Jenkins
> Issue Type: Bug
> Components: simpleclearcase
> Affects Versions: current
> Environment: RHEL5
> simpleclearcase 1.1
> Jenkins 1.454
> Reporter: Matthias Spiller
> Assignee: sam tavakoli
>
> See error message below.
> cleartool is in /usr/atria/bin
> I have tried to set the PATH variable using EnvInject.
> Please help. Thanks.
> {quote}
> [EnvInject] - Preparing an environment for the job.
> [EnvInject] - Keep Jenkins system variables.
> [EnvInject] - Keep Jenkins build variables.
> [EnvInject] - Injecting as environment variables the properties content
> PATH=/usr/atria/bin:$PATH
> [EnvInject] - Variables injected successfully.
> checkout: Starting to 'checkout'
> checkout: There is no Previous build or there isn't any RevisionState added,
> we invoke lshistory with null date
> [testbuild] $ cleartool setview -exec 'cleartool lshistory -last 10 -fmt
> "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco /vobs/a93k/prod_com'
> bf_r7.1_fix-enhance_mspiller_cr74112
> java.io.IOException: Cannot run program "cleartool" (in directory
> "/data/workspace/testbuild"): java.io.IOException: error=2, No such file or
> directory
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
> at hudson.Proc$LocalProc.<init>(Proc.java:244)
> at hudson.Proc$LocalProc.<init>(Proc.java:216)
> at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
> at hudson.Launcher$ProcStarter.start(Launcher.java:338)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:932)
> at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899)
> at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> at hudson.remoting.Request$2.run(Request.java:287)
> at
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:636)
> Caused by: java.io.IOException: java.io.IOException: error=2, No such file or
> directory
> at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
> at java.lang.ProcessImpl.start(ProcessImpl.java:81)
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
> ... 15 more
> Notifying upstream projects of job completion
> Finished: FAILURE
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira