• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 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-47115] Add trim option to String Parameter

          Alexander Vorobiev created issue -

          The string parameter in Jenkins has no trim option. Job DSL only provides syntax for options that are available in Jenkins core or plugins.

          Daniel Spilker added a comment - The string parameter in Jenkins has no trim option. Job DSL only provides syntax for options that are available in Jenkins core or plugins.
          Daniel Spilker made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Alexander Vorobiev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: job-dsl-plugin [ 16720 ]
          Alexander Vorobiev made changes -
          Assignee Original: Daniel Spilker [ daspilker ]

          Comment above does not resolve the problem described.

          Moving to core.

          Alexander Vorobiev added a comment - Comment above does not resolve the problem described. Moving to core.
          Alexander Vorobiev made changes -
          Resolution Original: Won't Fix [ 2 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Oleg Nenashev made changes -
          Labels New: newbie-friendly
          Oleg Nenashev made changes -
          Summary Original: Add trim option to stringParam New: Add trim option to String Parameter
          Kseniia Nenasheva made changes -
          Assignee New: Kseniia Nenasheva [ ks_nenasheva ]

            ks_nenasheva Kseniia Nenasheva
            vorobievalex Alexander Vorobiev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: