Hi,


I'm facing an issue in a master/slave Jenkins setup. Version of master is 
2.89.2, slaves are running Linux.



If a node is connected via the "Launch slave agent via SSH" method, everything 
is working as expected.



When I use the "Launch agent via Java Web Start" method and use this command to 
connect the node to the master:

                java -jar agent.jar -jnlpUrl 
https://MASTER/computer/SLAVENAME/slave-agent.jnlp -secret SECRET

the node is connected successfully to the master and jobs are being executed.



The problem arises when a second git repository is to be checked out during 
build with this step in our build pipelines:

                dir('keys') {

                                git url: 
'[email protected]:ORG/REPO.git', credentialsId: 'MyCredentials'

                }

‘MyCredentials’ is a private SSH key with username and passphrase to decrypt 
the key, stored in the Jenkins master.

The build times out after waiting 10 minutes for the step to finish with no 
relevant info (stack trace + exit code for SIGTERM + no stdout + no stderr) in 
the build log. However, on the terminal where the agent.jar was started there 
is this output:
                May 02, 2018 2:25:05 PM hudson.remoting.jnlp.Main$CuiListener 
status
INFO: Connected
Enter passphrase for key '/var/lib/jenkins/workspace/PROJECTNAME':

So it seems that when using the WebStart-method, something is wrong with the 
stdin/stdout redirection. In the wiki 
(https://wiki.jenkins.io/display/JENKINS/Distributed+builds) it says: “execute 
the agent program like java -jar agent.jar, on the right computer, and have its 
stdin/stdout connect to your script's stdin/stdout”. I’m not sure if I’m doing 
something wrong because all examples for headless just run the java command as 
shown above.

Any ideas if this is valid bug, I’m doing something wrong or that scenario is 
currently just not supported?

Thanks!

Jannis Achstetter
Technical Engineer Mobility
Innovation & Technology Digitization
Industry Business
Schneider Electric Automation GmbH

D  +49 9391 606 - 2897
E  
[email protected]<mailto:[email protected]>

Schneiderplatz 1
97828 Marktheidenfeld
Germany

http://www.schneider-electric.com/ww/en/





*Please consider the environment before printing this e-mail




Sitz der Gesellschaft: Marktheidenfeld | Amtsgericht Würzburg | HRB 10733 | 
USt-IdNr. DE261529553
Geschäftsführer: Thomas Martis, Ottmar Himmelsbach



-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/VI1PR04MB31506BC1A82F0403511F1DB2D2800%40VI1PR04MB3150.eurprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to