如何防止 Jenkins-Swarm 插件将 swarm 设置为标签
How to prevent Jenkins-Swarm Plugin from setup swarm as a Label
我用 swarm 插件设置了一个 Jenkins 服务器,并编写了一个批处理来自动启动奴隶。我的批处理文件如下所示:
java -jar swarm-client-2.2-jar-with-dependencies.jar -mode exclusive
-master http://localhost:8080 -disableClientsUniqueId -username
MyUser -password ***** -executors 1 -labels MySlave
我的问题是,slave 总是在添加 Label swarm。
我的问题是:
如何防止插件将 swarm 设置为标签?
我赞同完美控制附加到从站的标签的愿望,无论它是否通过 Swarm 插件连接。但是源代码让它看起来像 "swarm" 标签是标签列表的强制性前缀:https://github.com/jenkinsci/swarm-plugin/blob/ef02020595d0546b527b84a2e47bc75cde1e6e1a/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java#L199
答案可能是如果不分叉 Swarm 插件并更新那一行就无法避免该标签。
我用 swarm 插件设置了一个 Jenkins 服务器,并编写了一个批处理来自动启动奴隶。我的批处理文件如下所示:
java -jar swarm-client-2.2-jar-with-dependencies.jar -mode exclusive
-master http://localhost:8080 -disableClientsUniqueId -username
MyUser -password ***** -executors 1 -labels MySlave
我的问题是,slave 总是在添加 Label swarm。
我的问题是:
如何防止插件将 swarm 设置为标签?
我赞同完美控制附加到从站的标签的愿望,无论它是否通过 Swarm 插件连接。但是源代码让它看起来像 "swarm" 标签是标签列表的强制性前缀:https://github.com/jenkinsci/swarm-plugin/blob/ef02020595d0546b527b84a2e47bc75cde1e6e1a/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java#L199
答案可能是如果不分叉 Swarm 插件并更新那一行就无法避免该标签。