通过从站参数化作业
我想创建一个工作来对詹金斯奴隶做一些家务工作,并在需要时手动触发它。我想为该作业提供一个参数来告诉它在哪个从属设备上运行。最好的方法是什么?
I'd like to create a job to do some housekeeping on Jenkins slaves and trigger it manually whenever needed. I'd like to provide that job with a parameter to tell it on which slave to run. What's the best way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 Jenkins 1.417 或更高版本,则可以使用 节点标签参数插件。
这使您可以向构建添加参数,以确定应在何处运行。
If you're using Jenkins 1.417 or newer, you can use the Node Label Parameter Plugin.
This lets you add a parameter to your build, identifying where it should be run.