Hello, 

I’m not sure one can do what you want.

Out of curiosity, what’s the use case for this ?


> Le 13 juin 2016 à 23:16, Eli White <[email protected]> a écrit :
> 
> My understanding is that Jenkinsfile execution runs as a flyweight node on 
> master, but then uses heavyweight nodes on the given node label to execute.
> 
> Per this file: 
> https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md
> 
> Why are there two executors consumed by one Pipeline build?
> 
> Every Pipeline build itself runs on the master, using a flyweight executor — 
> an uncounted slot that is assumed to not take any significant computational 
> power.
> This executor represents the actual Groovy script, which is almost always 
> idle, waiting for a step to complete.
> Flyweight executors are always available.
> 
> On Monday, June 13, 2016 at 2:11:19 PM UTC-7, Craig Rodrigues wrote:
> In your pipeline, the node parameter can take an argument of which node to 
> run on.
> 
> See this example:
> https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L100
>  
> <https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L100>
> 
> In my job, I defined BUILD_NODE with the NodeLabel Parameter Plugin ( 
> https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> ).
> 
> --
> Craig
> 
> 
> 
> On Mon, Jun 13, 2016 at 2:03 PM, Eli White <[email protected] 
> <javascript:>> wrote:
> We follow the Jenkins configuration best practices and have no executors on 
> our master node and force everything to run on our agents. 
> 
> We are starting to work with pipeline jobs and are worried that bad 
> Jenkinsfiles could cause problems on our master. 
> How can we force the flyweight jobs to run on a designated machine *other* 
> than master? 
> 
> How do other people handle this?
> 
> -- 
> 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 [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/d4ee67f4-ab75-4a1e-9883-69453bdd656b%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/d4ee67f4-ab75-4a1e-9883-69453bdd656b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/a41c28a9-fc93-459f-b990-87cb1210cb64%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/a41c28a9-fc93-459f-b990-87cb1210cb64%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9823286F-055A-4C0B-8DD7-D62B87BCB5B6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to