Why does it running on another node?

43 views
Skip to first unread message

cyril...@gmail.com

unread,
Dec 17, 2018, 5:45:52 AM12/17/18
to Jenkins Users
I have a job it's doesn't use "Restrict where this project can be run" option, why doesn't it running on a master node, but running on a slave node? 


Jenkins ver. 1.625.1

Could you help me to know?

Eric Pyle

unread,
Dec 17, 2018, 9:37:58 AM12/17/18
to jenkins...@googlegroups.com
If you don't restrict the job, it will pick one of the available nodes arbitrarily, and it doesn't matter whether it is the master or a slave/agent. Once the job has run on a particular node, it will remain there unless that node is unavailable at the time the job starts. This is done to take advantage of any dependencies or resources that may already be there from a previous run.

Generally, it is considered better to have jobs run on agents, and let the master node just run Jenkins.

Regards,
Eric
--
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/1078c386-120f-40cc-b758-adbf1aa925aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric...@siemens.com
http://www.siemens.com/plm

cyril...@gmail.com

unread,
Dec 18, 2018, 12:12:21 AM12/18/18
to Jenkins Users
If this node used "Only build jobs with label restrictions matching this node." option, so a job of don't restrict the job does it still picking up this node?

在 2018年12月17日星期一 UTC+8下午10:37:58,Eric Pyle写道:

Eric Pyle

unread,
Dec 18, 2018, 9:43:57 AM12/18/18
to jenkins...@googlegroups.com
Help for the Usage setting (in node configuration page) says:

Only build jobs with label expressions matching this node
In this mode, Jenkins will only build a project on this node when that project is restricted to certain nodes using a label expression, and that expression matches this node's name and/or labels.


So I read that as saying that a job which is not restricted to certain nodes or labels will not run on a node which requires "Only build jobs with label expressions matching this node".

-Eric

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages