jenkins 多节点,自由选择节点发布项目

效果如下:


所需插件:

具体操作:

  • Job选择参数化构建,添加Node
    • Possible nodes 选择可用节点
  • The nodes available for selection when job gets triggered manually
    目前测试,选择第二、三选项,可以成功在多个节点依次构建
选项 说明
Run next build only if build succeeds 【只有构建成功之后,才进行下一次构建】
Run next build only if build succeeds or is unstable 【构建成功或不稳定时,都进行下一次构建】
Run next build regardless of build result 【不管构建结果,都进行下一次构建】
Allow multi node selection for concurrent builds 【启用多节点并发构建,勾选此项时,需要将下面的在必要的时候并发构建选中】
Disallow multi node selection when triggering build manually 【手动触发构建时,不允许选择多节点构建】


原文地址:https://www.cnblogs.com/qingshang/p/14015719.html