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

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      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!

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          chnage component to "core".

          Show
          sogabe sogabe added a comment - chnage component to "core".
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          dogfood 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
          Show
          dogfood 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

            People

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

              Dates

              Created:
              Updated:
              Resolved: