在所有节点上同时运行 Jenkins 作业 [英] Running Jenkins job simultaneously on all nodes

查看:40
本文介绍了在所有节点上同时运行 Jenkins 作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TLDR:我希望能够在 Jenkins 管道中的多个节点上同时运行作业.[ 例如 - 在节点 dev、test & 上构建应用程序 x基于 aws 的暂存节点]

TLDR: I want to be able to run job simultaneously on multiple nodes in Jenkins pipeline. [ for example - build application x on nodes dev, test & staging nodes based on aws ]

我有一大组具有相同标签的节点.我希望能够在 Jenkins 中运行一个作业,该作业在 所有 具有相同标签的节点上执行并且同时执行.

I have a large group of nodes with the same label. I would like to be able to run a job in Jenkins that executes on all of the nodes with the same label as well as doing so simultaneously.

我在Jenkins中看到了使用矩阵配置选项的建议,但我只能想到一个轴(标签组).当我尝试运行该作业时,它似乎只执行一次而不是 300 次(该标签组中的每个节点执行 1 次).

I saw a suggestion to use the matrix configuration option in Jenkins, but I can only think of one axis (the label group). When I try and run the job, it seems like it only executes once instead of 300 times (1 for each of the nodes in that label group).

我的另一个轴应该是什么?或者...有一些插件可以做到这一点吗?我试过 NodeLabel 参数插件,并选择在所有可用的在线节点上运行",但它似乎并没有同时运行这些作业.

What should my other axis be? Or...is there some plugin to do this? I had tried the NodeLabel Parameter Plugin, and choosing "run on all available online nodes", but it does not seem to run the jobs simultaneously.

推荐答案

  • Rundeck 可能是更适合您需求的工具.可以设置为并行运行多个作业,并具有 Jenkins 插件:http://rundeck.org/
  • Rundeck 旨在与更大的系统集成.我们从配置管理数据库生成资源文件.很容易看到文档:http://rundeck.org/docs/administration/node-resource-sources.html.
  • 其他可用于亚马逊和/或 puppet 和 chef 等系统的插件:http://rundeck.org/plugins
  • 这篇关于在所有节点上同时运行 Jenkins 作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆