Because:

      1.  Some Jenkins users are less technical or not technical (QA testers) and may therefore be unaware of the consequences of pasting a string with extra space characters

      2.  Jenkins prohibits changing params.* values from within the pipeline and

      3.  Repeating the params.myStringParameter.trim() with each use of a parameter is tedious

       

      The build-with-parameters-plugin should be enhanced to automatically trim string parameters before storing them.

          [JENKINS-67447] String Parameters Should Be Trimmed

          Kyle Jeffries created issue -
          Kyle Jeffries made changes -
          Description Original: Because:

          1.  Some Jenkins users are less technical or not technical (QA testers)

          2.  Jenkins prohibits changing params.* values from within the pipeline and

          3.  Repeating the params.myStringParameter.trim() with each use of a parameter is tedious

           

          The build-with-parameters-plugin should be enhanced to automatically trim string parameters before storing them.
          New: Because:

          1.  Some Jenkins users are less technical or not technical (QA testers) and may therefore be unaware of the consequences of pasting a string with extra space characters

          2.  Jenkins prohibits changing params.* values from within the pipeline and

          3.  Repeating the params.myStringParameter.trim() with each use of a parameter is tedious

           

          The build-with-parameters-plugin should be enhanced to automatically trim string parameters before storing them.

            sugonyak_ivan Ivan Sugonyak
            infinitelooprollercoaster Kyle Jeffries
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: