简体   繁体   English

Jenkins多配置作业:如果slave脱机,则跳过构建步骤

[英]Jenkins Multi configuration job: Skip build step if slave is offline

I have created a Jenkins Multi configuration job that runs a build step on 5 windows slaves. 我创建了一个Jenkins Multi配置作业,它在5个Windows从属服务器上运行构建步骤。 Now if one of the slaves is offline (for some reason) the job is blocked until the slave(s) which is offline is put back online. 现在,如果其中一个从站脱机(由于某种原因),则作业将被阻止,直到脱机的从站重新联机。

Is it possible to continue the build and simply skip the build step on the slave(s) that is offline? 是否可以继续构建并简单地跳过离线从属的构建步骤?

Try using Elastic Axis plugin. 尝试使用Elastic Axis插件。
Afer installing it, in the multi configuration job you can find new axis added as Elastic axis. 安装后,在多配置作业中,您可以找到添加为弹性轴的新轴。 You just need to provide the label of the node. 您只需要提供节点的标签。 The job will run on all the nodes with that label. 作业将在具有该标签的所有节点上运行。 There is a check box provided to skip the nodes that are offline. 提供了一个复选框以跳过脱机的节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM