I tested another way to run the slave:
- I logged on the slave, open firefox and connect to the master jenkins web 
page.
- here, I configured the node and select java web start to start the node.
- On the node, I enter the following command:
 java -jar slave.jar -jnlpUrl 
http://mymasterurl:8080/computer/the_slave_name/slave-agent.jnlp

I've got the following messages:

Sep 02, 2013 2:58:26 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Sep 02, 2013 2:58:26 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.3:8081/]
Sep 02, 2013 2:58:26 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.3:24
Sep 02, 2013 2:58:26 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Sep 02, 2013 2:58:26 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected

But if I start my job, I still have an error:

Started by user anonymous <http://192.168.0.3:8081/user/null>
[EnvInject] - Loading node environment variables.
Building remotely on slave_linux_64 
<http://192.168.0.3:8081/computer/slave_linux_64> in workspace 
/home/crystal/jenkins/workspace/TESTLinux
hudson.util.IOException2: remote file operation failed: 
/home/crystal/jenkins/workspace/TESTLinux at 
hudson.remoting.Channel@77f1201b:slave_linux_64
        at hudson.FilePath.act(FilePath.java:905)
        at hudson.FilePath.act(FilePath.java:882)
        at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743)
        at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:685)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1408)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
        at hudson.model.Run.execute(Run.java:1603)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:247)
Caused by: java.io.IOException: Remote call on slave_linux_64 failed
        at hudson.remoting.Channel.call(Channel.java:723)
        at hudson.FilePath.act(FilePath.java:898)
        ... 11 more
Caused by: java.lang.NoClassDefFoundError: jenkins.model.Jenkins
        at 
hudson.scm.SubversionSCM.createDefaultSVNOptions(SubversionSCM.java:844)
        at hudson.scm.SubversionSCM.createClientManager(SubversionSCM.java:834)
        at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:766)
        at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2417)
        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:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at hudson.remoting.Engine$1$1.run(Engine.java:63)
        at java.lang.Thread.run(Thread.java:724)
Finished: FAILURE




If I add ssh commands in my job (pre build ssh command to perform the checkout, 
ssh command to start the compilation), everything is running fine.

YC


-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to