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

          Brendan Brewster created issue -
          sogabe made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: dashboard-view [ 15679 ]
          Assignee Original: Peter Hayes [ petehayes ]
          sogabe made changes -
          Assignee New: sogabe [ sogabe ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146638 ] New: JNJira + In-Review [ 192014 ]

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

              Created:
              Updated:
              Resolved: