Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有许多机器希望用作 Jenkins 的从节点,但仅限于特定时间间隔(即不在工作时间)。是否可以配置一个从节点作为在特定时间范围内构建的从节点?例如:周六和周日晚上 10 点到凌晨 5 点的 MF?
在从属配置面板中,选择Take this slave on-line according to a schedule.
Take this slave on-line according to a schedule
然后,您可以指定从站的启动时间和所需的正常运行时间。
但是,您必须小心长时间运行的作业——如果在正常运行时间到期前一分钟将一个三小时的作业安排给从属服务器,那么该作业将在整个期间继续运行,因为Jenkins 不会在预定后终止正在运行的构建时间结束。