Try to add /opt/rational/clearcase/bin in the .cshrc file (depending on 
shell of cause) of the jenkins-user.
Without the -login flag isn't shell startup file read.
/Johan 

Den måndagen den 4:e augusti 2014 kl. 17:55:07 UTC+2 skrev lingfei ouyang:
>
> Hello All,
>
> Im currently created the jenkin builds with Simple Dynamic ClearCase 
> Pollings and when it start polling I got below error:
>
> $ cleartool setview -exec 'cleartool lshistory -branch branch1 -last 10 -fmt 
> "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco /vobs/arch' view1
> FATAL: Cannot run program "cleartool" (in directory "XXXXX"): error=2, No 
> such file or directoryjava.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Cannot 
> run program "cleartool" (in directory "XXXXX"): error=2, No such file or 
> directory
>       at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.start&entity=method>
>       at hudson.Proc$LocalProc.<init>(Proc.java:244) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>
>       at hudson.Proc$LocalProc.<init>(Proc.java:216) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3E&entity=method>
>       at hudson.Launcher$LocalLauncher.launch(Launcher.java:780) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$LocalLauncher.launch&entity=method>
>       at hudson.Launcher$ProcStarter.start(Launcher.java:360) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.start&entity=method>
>       at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1111) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$RemoteLaunchCallable.call&entity=method>
>       at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1078) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$RemoteLaunchCallable.call&entity=method>
>       at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
>       at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.perform&entity=method>
>       at hudson.remoting.Request$2.run(Request.java:328) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.run&entity=method>
>       at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.call&entity=method>
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRun&entity=method>
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method>
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.runTask&entity=method>
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method>
>       at java.lang.Thread.run(Thread.java:619) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method>
> Caused by: java.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: error=2, 
> No such file or directory
>       at java.lang.UNIXProcess.forkAndExec(Native Method)
>       at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
>       at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>       at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>       ... 15 more
> Done. Took 0.85 sec
> No changes
>
>
>
> And I do tried setup the PATH = /opt/rational/clearcase/bin in both 
> Environment Variables under the Global Properties and also under the Notes' 
> Properties. and restarted the jenkins and it still getting the same error.
>
>
> So I'm stuck in here and need some help on this.
>
>
> Thanks
> Ling
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to