Issue Type: Bug Bug
Assignee: Kohsuke Kawaguchi
Attachments: jenkins_log_swarm_fail.log
Components: swarm-plugin
Created: 29/Apr/15 8:57 AM
Description:

It is impossible to start correctly a swarm when specifying a toolLocations argument with whitespaces (ie. jdk:C:/Program Files/Java/...).

The problem seems to come from :
swarm-plugin/client/src/main/java/hudson/plugins/swarm/SwarmClient.java, line 308.
swarm-plugin/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java, line 121.

which use " " as a separator for tools. As a consequence, the part after the whitespace is considered to be another tool (which is just the rest of the previous one), and throw RuntimeException because it is not recognized.

IMO, the solution would either be :

  • change the splitting character (ie. tool1:location@tool2:location). Quick win.
  • use a more complex structure for data sent from client to plugin than just raw text and simple separators.
Environment: Jenkins : 1.596.2, swarm-plugin : 1.22, Windows7
Project: Jenkins
Labels: slave windows
Priority: Minor Minor
Reporter: Paul Popineau
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to