Jenkins 安排代理节点可用性

标签 jenkins jenkins-agent

我们有许多机器希望用作 Jenkins 的代理节点,但仅限于特定的时间间隔(即不在工作时间)。是否可以配置一个代理节点作为特定时间范围内构建的代理?例如:周一至周五晚上 10 点至凌晨 5 点,周六和周日全天?

最佳答案

从站配置面板中,选择根据计划使该从站上线

然后您可以指定从属设备的启动时间和所需的正常运行时间。

但是,您必须小心长时间运行的作业 - 如果在正常运行时间到期前一分钟将一个三小时的作业安排到从属服务器,那么该作业将在整个期间继续运行,因为 Jenkins 在预定的结束时间之后不会终止正在运行的构建

关于Jenkins 安排代理节点可用性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39466900/

相关文章:

jenkins - Jenkins 下游作业无法找到上游工件

jenkins - 升级后无法连接到 Jenkins Agent

jenkins NodeLabel 参数插件默认

shell - Jenkins Slave 打印消息 Cannot contact Slave-host : java. io.IOException : Remote call on Channel to/10. 0.2.2 failed

jenkins - 多配置 Jenkins 作业订单

python - 当 python 脚本中的任何内容失败时,在 Jenkins 中触发失败

kubernetes - 具有自定义 docker 镜像的 Jenkins 代理未与 minikube 中的 Controller 连接

Docker 容器作为 Jenkins Slave

Jenkins 管道 sh 步骤返回错误 "process apparently never started"

Jenkins SSH 插件 : Parameterizing remote host