How to prevent Jenkins-Swarm Plugin from setup swarm as a Label -
i set jenkins server swarm plugin , write batch autostart slaves. batch file looks like:
java -jar swarm-client-2.2-jar-with-dependencies.jar -mode exclusive -master http://localhost:8080 -disableclientsuniqueid -username myuser -password ***** -executors 1 -labels myslave
my problem is, slave adding label swarm.
my question is:
how can prevent plugin setting swarm label ?
i sympathize desire control labels attached slave, whether it's connected through swarm plugin or not. source code makes "swarm" label mandatory prefix list of labels: https://github.com/jenkinsci/swarm-plugin/blob/ef02020595d0546b527b84a2e47bc75cde1e6e1a/plugin/src/main/java/hudson/plugins/swarm/pluginimpl.java#l199
the answer may cannot avoid label without forking swarm plugin , updating line.
Comments
Post a Comment