cloud docker give options to java command

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

cloud docker give options to java command

pi.quiroule
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: cloud docker give options to java command

nicolas de loof-2
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 <[hidden email]>:
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 [hidden email].
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzm07D986aMoHoaKPDH%2BiLm2vSU7rqct1dKoMfNAQYyGKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cloud docker give options to java command

pi.quiroule
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZROmk5SKBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pi.qu...@...>:
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ZROmk5SKBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cloud docker give options to java command

nicolas de loof-2
just use the "JVM Options" parameter for this launcher (in advanced options)

2017-11-24 11:09 GMT+01:00 <[hidden email]>:
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 <[hidden email]>:
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJznjJCpXkAqZsDHMPhVT9f4vd1C7HaFbnQP1mLYTgqPAbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cloud docker give options to java command

pi.quiroule
In reply to this post by pi.quiroule


Le jeudi 23 novembre 2017 16:15:12 UTC+1, [hidden email] a écrit :
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/57246ca3-d186-40da-8cc1-41fe890ff297%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: cloud docker give options to java command

pi.quiroule
In reply to this post by nicolas de loof-2
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="x5RIArzLBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pi.qu...@...>:
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 <[hidden email]>:
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 <a href="https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/0366d397-a6d9-4259-9ae8-e6276f3e18a0%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="x5RIArzLBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/d92d8aa9-1ef8-416d-aaa8-c1c6bd1e6488%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5085fa1a-bd22-4b0e-a52a-8218bf2bcf0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.