Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15836

Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Hello, thank you all for Jenkins. It is a wonderful project.

      We had one major problem setting up Jenkins that can be easily fixed:

      • When you create a Slave and accidentally add a space at the end of the Name, it is impossible to tell by looking at the name that it contains whitespace.
      • If you try to use the Slave's Name such as in a Label Expression when restricting where a project can be run, you are told "There's no slave/cloud that matches this assignment."
      • It is very hard to work out that the problem is an extra space in the Slave's Name.
      • You COULD enter the Slave's Name as "Blah " in the Label Expression, but the real problem is you accidentally added a space to the name that should be removed.

      We believe there is no good reason to allow spaces at the end (or beginning?) of a Slave's Name and we request that you trim the Slave's Name of spaces when you Create and Save a Slave's configuration.

      Many thanks!

            sogabe sogabe
            bjbrewster Brendan Brewster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: