How to configure slave?

277 views
Skip to first unread message

Bastian Kuberek

unread,
Aug 28, 2014, 3:34:54 PM8/28/14
to job-dsl...@googlegroups.com


Hi,

I am trying to build a project in a slave but I don't know how to do that from the dsl. I am able to git pull and build on the master, but I would like to move the build to a slave.

Any help on that will much appreciated.

Thanks

Patrick van Dissel

unread,
Aug 30, 2014, 8:52:49 AM8/30/14
to job-dsl...@googlegroups.com
That works the samen with the jobDSL as it works with manual configuration.

- You add a Jenkins slave (node) to the Jenkins Master configuration

(https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines)
- Define a "label" to bind that slave to
- And in your job config in the jobdsl you also define that same label

(https://github.com/jenkinsci/job-dsl-plugin/blob/master/docs/Job-reference.md#label)

That's it :)

/Patrick
> --
> You received this message because you are subscribed to the Google
> Groups "job-dsl-plugin" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to job-dsl-plugi...@googlegroups.com
> <mailto:job-dsl-plugi...@googlegroups.com>.
> To post to this group, send email to job-dsl...@googlegroups.com
> <mailto:job-dsl...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/job-dsl-plugin/71c21067-48fe-4f51-8b2b-9aa310d646cf%40googlegroups.com
> <https://groups.google.com/d/msgid/job-dsl-plugin/71c21067-48fe-4f51-8b2b-9aa310d646cf%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Bastian Kuberek

unread,
Aug 31, 2014, 9:56:17 AM8/31/14
to job-dsl...@googlegroups.com
That's exactly what I ended up doing! Thanks a lot for replying.

Best,

Bastian Kuberek


On Sat, Aug 30, 2014 at 8:52 AM, Patrick van Dissel <pvdi...@gmail.com> wrote:
That works the samen with the jobDSL as it works with manual configuration.

- You add a Jenkins slave (node) to the Jenkins Master configuration

(https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines)
- Define a "label" to bind that slave to
- And in your job config in the jobdsl you also define that same label

(https://github.com/jenkinsci/job-dsl-plugin/blob/master/docs/Job-reference.md#label)

That's it :)

/Patrick


On 28-08-14 21:34, Bastian Kuberek wrote:


Hi,

I am trying to build a project in a slave but I don't know how to do
that from the dsl. I am able to git pull and build on the master, but I
would like to move the build to a slave.

Any help on that will much appreciated.

Thanks

--
You received this message because you are subscribed to the Google
Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send

--
You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/kwankR4SJTQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/5401C91D.3030205%40gmail.com.

ppawl...@groupon.com

unread,
Feb 19, 2015, 6:21:29 AM2/19/15
to job-dsl...@googlegroups.com
Is it possible to manage Jenkins agents programmatically using DSL plugin? I see in release notes of version 1.17 "SSH Agent", but I can't find anything else about it.


W dniu sobota, 30 sierpnia 2014 14:52:49 UTC+2 użytkownik Patrick van Dissel napisał:
That works the samen with the jobDSL as it works with manual configuration.

- You add a Jenkins slave (node) to the Jenkins Master configuration
 
(https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines)
- Define a "label" to bind that slave to
- And in your job config in the jobdsl you also define that same label
 
(https://github.com/jenkinsci/job-dsl-plugin/blob/master/docs/Job-reference.md#label)

That's it :)

/Patrick

On 28-08-14 21:34, Bastian Kuberek wrote:
>
>
> Hi,
>
> I am trying to build a project in a slave but I don't know how to do
> that from the dsl. I am able to git pull and build on the master, but I
> would like to move the build to a slave.
>
> Any help on that will much appreciated.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "job-dsl-plugin" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to job-dsl-plugi...@googlegroups.com

Daniel Spilker

unread,
Feb 19, 2015, 6:34:13 AM2/19/15
to job-dsl...@googlegroups.com
There is no support for managing agents yet. The SSH Agent support refers to the SSH Agent Plugin (https://wiki.jenkins-ci.org/display/JENKINS/SSH+Agent+Plugin) which has nothing to do with managing Jenkins agents.

To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/993c9c52-36f8-4a5e-9733-4fc5d95cc844%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages