Can Jenkins nodes be given priority for build jobs

前端 未结 2 780
独厮守ぢ
独厮守ぢ 2021-01-12 01:52

I have a set of build jobs in jenkins that can run in any one of 3 build nodes. They are all labeled with a common label of \"ubuntu_build\". Each of the nodes has a numbe

2条回答
  •  一个人的身影
    2021-01-12 02:38

    I was reading another question similar to this it was suggested there that you can use a plugin called "Least Load Plugin"

    Summary

    By default Jenkins tries to allocate a jobs to the last node is was executed on. This can result in nodes being left idle while other nodes are overloaded. This plugin overrides the default behavior and assigns jobs to nodes with the least load. The least load is defined as a node that is idle or the one with the most available executors. It is intended to provide the same functionality as the commercial plugin Even Scheduler Plugin.

    Here is the link : https://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin

    Source question: How can I modify the Load Balancing behavior Jenkins uses to control slaves?

提交回复
热议问题