cloud docker give options to java command

34 views
Skip to first unread message

pi.qu...@gmail.com

unread,
Nov 23, 2017, 10:15:12 AM11/23/17
to Jenkins Users
Hi,
how could I give an option to the java command launching jenkins in a slave :
java -jar slave.jar

Is it possible with Jenkins/configuration "Cloud/Docker/Docker agent templates/Container settings" ?

nicolas de loof

unread,
Nov 23, 2017, 12:52:22 PM11/23/17
to jenkins...@googlegroups.com
it depends the docker agent template "launch" mechanism you're using.
Can you please describe your use-case ? Which argument do you want to pass to the jenkins remote agent ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pi.qu...@gmail.com

unread,
Nov 24, 2017, 5:09:24 AM11/24/17
to Jenkins Users
I'm using ssh launch mechanism with ssh credentials.
I would like to pass -xmx argument to the java command launching jenkins to limit the memory used by my jenkins nodes.




Le jeudi 23 novembre 2017 18:52:22 UTC+1, nicolas de loof a écrit :
it depends the docker agent template "launch" mechanism you're using.
Can you please describe your use-case ? Which argument do you want to pass to the jenkins remote agent ?
2017-11-23 15:50 GMT+01:00 <pi.qu...@gmail.com>:
Hi,
how could I give an option to the java command launching jenkins in a slave :
java -jar slave.jar

Is it possible with Jenkins/configuration "Cloud/Docker/Docker agent templates/Container settings" ?

--
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-use...@googlegroups.com.

nicolas de loof

unread,
Nov 24, 2017, 8:46:19 AM11/24/17
to jenkins...@googlegroups.com
just use the "JVM Options" parameter for this launcher (in advanced options)

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com.
Message has been deleted

pi.qu...@gmail.com

unread,
Nov 27, 2017, 5:28:15 AM11/27/17
to Jenkins Users
Yes, thanks, I found this option and a few others in the last version of docker plugin.
And thanks a lot for Docker Plugin !



Le vendredi 24 novembre 2017 14:46:19 UTC+1, nicolas de loof a écrit :
just use the "JVM Options" parameter for this launcher (in advanced options)
2017-11-24 11:09 GMT+01:00 <pi.qu...@gmail.com>:
I'm using ssh launch mechanism with ssh credentials.
I would like to pass -xmx argument to the java command launching jenkins to limit the memory used by my jenkins nodes.



Le jeudi 23 novembre 2017 18:52:22 UTC+1, nicolas de loof a écrit :
it depends the docker agent template "launch" mechanism you're using.
Can you please describe your use-case ? Which argument do you want to pass to the jenkins remote agent ?

2017-11-23 15:50 GMT+01:00 <pi.qu...@gmail.com>:
Hi,
how could I give an option to the java command launching jenkins in a slave :
java -jar slave.jar

Is it possible with Jenkins/configuration "Cloud/Docker/Docker agent templates/Container settings" ?

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages