如何在Jenkins中以不同顺序传递节点参数

发布于 2025-01-11 09:28:25 字数 215 浏览 3 评论 0原文

我们有 5 个运行 tomcat 应用程序的 Windows 服务器。在Jenkins中,我们希望以一种顺序远程停止tomcat并以不同的顺序启动tomcat。

因此,我们分别为停止和启动创建了 2 个不同的作业,并在这里使用了主从方法。

当我使用参数构建时,节点参数按字母顺序传递。但我想根据要求传递不同的组合。

请协助我们在jenkins中选择如何传递Node参数。谢谢

We have 5 windows server with tomcat application running. and in Jenkins, we want to remotely stop the tomcat in one order and start the tomcat in different order.

So, we have created 2 different jobs for stop and start respectively and we used Master slave method here.

When i build with parameter, The node parameters are passed in alphabetical order. But i want to pass in different combinations based on the requirement.

Please assist how to pass Node parameters with our choice in jenkins. Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文