How to use Job DSL to restict where the job can run

296 views
Skip to first unread message

eid badr

unread,
Oct 12, 2016, 6:49:37 AM10/12/16
to job-dsl-plugin
Hi

In Jenkins job Configuration (Picture in attachment) I use the options "Restrict where this project can be run" to restrict on which slave(s) a job can run.

How can I use Job DSL to do this?

In the syntax reference I found allowedNodes and allowedSlaves but I cant figure out how to use them. Can someone give me an example?


thanx
where test runs.PNG

Daniel Spilker

unread,
Oct 12, 2016, 6:59:05 AM10/12/16
to job-dsl...@googlegroups.com

--
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-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/37989405-c78b-4088-8960-c06b368b6b71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eid badr

unread,
Oct 12, 2016, 8:12:23 AM10/12/16
to job-dsl-plugin
it works, thank you


Am Mittwoch, 12. Oktober 2016 12:59:05 UTC+2 schrieb Daniel Spilker:
On Wed, Oct 12, 2016 at 12:49 PM, eid badr <eidb...@gmail.com> wrote:
Hi

In Jenkins job Configuration (Picture in attachment) I use the options "Restrict where this project can be run" to restrict on which slave(s) a job can run.

How can I use Job DSL to do this?

In the syntax reference I found allowedNodes and allowedSlaves but I cant figure out how to use them. Can someone give me an example?


thanx

--
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.
To post to this group, send email to job-dsl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages