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

    • 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!

          [JENKINS-15836] Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save

          sogabe added a comment -

          chnage component to "core".

          sogabe added a comment - chnage component to "core".

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          changelog.html
          core/src/main/java/hudson/model/ComputerSet.java
          http://jenkins-ci.org/commit/jenkins/41f1fe665b6bdcb45dc7c53de76de7f6252576a4
          Log:
          [FIXED JENKINS-15836] Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: changelog.html core/src/main/java/hudson/model/ComputerSet.java http://jenkins-ci.org/commit/jenkins/41f1fe665b6bdcb45dc7c53de76de7f6252576a4 Log: [FIXED JENKINS-15836] Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2095
          [FIXED JENKINS-15836] Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save (Revision 41f1fe665b6bdcb45dc7c53de76de7f6252576a4)

          Result = SUCCESS
          Seiji Sogabe : 41f1fe665b6bdcb45dc7c53de76de7f6252576a4
          Files :

          • changelog.html
          • core/src/main/java/hudson/model/ComputerSet.java

          dogfood added a comment - Integrated in jenkins_main_trunk #2095 [FIXED JENKINS-15836] Slave's Name should be trimmed of spaces at the beginning and end of the Name on Save (Revision 41f1fe665b6bdcb45dc7c53de76de7f6252576a4) Result = SUCCESS Seiji Sogabe : 41f1fe665b6bdcb45dc7c53de76de7f6252576a4 Files : changelog.html core/src/main/java/hudson/model/ComputerSet.java

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

              Created:
              Updated:
              Resolved: