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.

enter image description here

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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -