• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • Jenkins ver. 2.73.1
      job-dsl-plugin 1.65

      There are often failures when users input string parameter with an extra space.
      This leads to build failures in many cases.

      It would be great to be able to trim string parameter from the beginning. So it can be safely used everywhere down in the pipeline:

      parameters {
              string(defaultValue: "", description: '', name: 'tag or commit', trim: true)
      }
      

          [JENKINS-47986] Pipeline: Add trim option to String Parameter

          Alexander Vorobiev created issue -
          Alexander Vorobiev made changes -
          Component/s New: job-dsl-plugin [ 16720 ]
          Component/s Original: core [ 15593 ]
          Alexander Vorobiev made changes -
          Assignee Original: Kseniia Nenasheva [ ks_nenasheva ] New: Daniel Spilker [ daspilker ]
          Alexander Vorobiev made changes -
          Link New: This issue is blocked by JENKINS-47115 [ JENKINS-47115 ]
          Daniel Spilker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            daspilker Daniel Spilker
            vorobievalex Alexander Vorobiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: