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

job not created when name ends with whitespace but no exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core, job-dsl-plugin
    • None
    • jenkins: 2.44
      job-dsl-plugin: 1.57
      os: windows 10

      Hi.

      I encountered this issue by accident and can see in jira that whitespaces have been an issue before.

      When providing a simple dsl such as:

      job('test ')

      It executes without and exceptions but yet doesn't create the job.
      I'd expect that checkGoodName would catch it and throw and exception.
      Thanks in advance!

      Processing provided DSL script
      Added items:
      GeneratedJob

      Unknown macro: {name='test '}

      Unreferenced items:
      GeneratedJob

      Unknown macro: {name='test'}

      Finished: SUCCESS

            Unassigned Unassigned
            sdrzazga Stefan Drzazga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: