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

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

问题描述

我有一大堆带有相同标签的节点.我希望能够在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 .
  • 另外可用于亚马逊和/或诸如木偶和厨师的系统的插件: http://rundeck.org/plugins
    • Rundeck might be a tool better suited to your needs. Can be setup to run several jobs in parallel and has a plugin for Jenkins: http://rundeck.org/
    • Rundeck is designed to integrate with larger systems. We generate the resource file from our configuration management database. Very easy to do see the documentation: http://rundeck.org/docs/administration/node-resource-sources.html.
    • Additionally plugins available for amazon and/or systems like puppet and chef: http://rundeck.org/plugins
    • 这篇关于在所有节点上同时运行Jenkins作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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