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

Add trim option to String Parameter

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins ver. 2.73.1
      job-dsl-plugin 1.65
    • Similar Issues:

      Description

      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)
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ks_nenasheva Kseniia Nenasheva
                Reporter:
                vorobievalex Alexander Vorobiev
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: