that's all defined in jenkins side, not in the agent you can use the swarm plugin for auto connections
On Mon, Aug 21, 2017 at 3:57 PM, Kirill <yam...@gmail.com> wrote: > Hi folks, > > I'd like to use docker-jnlp-slave in my docker-compose to spin up slaves > for Jenkins master. > However, I didn't find a way to define the labels for the agent - seems > that there's no parameter for that. The same for executor thread count. > Furthermore, the Main class of JNLP agent (https://github.com/jenkinsci/ > remoting/blob/master/src/main/java/hudson/remoting/jnlp/Main.java) > doesn't seem to support these parameters as well. However, in agent's > details in UI you can define these things. > > So is there still a way to define those on container start? Or maybe I > should just use an empty busybox-style container calling create-node CLI > command (e.g, https://stackoverflow.com/questions/42683324/create- > jenkins-jlnp-slave-programmatically/42703928#42703928) to create a JNLP > agent? > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-dev/b4602caa-73e3-4fc5-b311-b0a9a0f91b26% > 40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/b4602caa-73e3-4fc5-b311-b0a9a0f91b26%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALHFn6ODgk2gop7bsyV4zCaUu90mJczZc12ftbduSZ35KbH%3DFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.