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

Parameters slicer trims default values - including space at the beginning of a Choice Parameter

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      (Reported on Wiki by Yoichi KODAMA)

      I add it to be able to choose SPACE in Choices. For example, I can choose 4 of the following.

      ' ' <= SPACE (default. NOT set an optional parameter)
      '-t apple' <= (set an optional parameter)
      '-t banana' <= (set an optional parameter)
      '-t cinnamon' <= (set an optional parameter)

      However, SPACE is deleted when I convert it in Parameters. Could you permit SPACE?
      I can use String Parameter instead of Choices, but, in String Parameter, I may make a typo, and the input of the keyboard is troublesome.

      Thanks!

      YK

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: jacobrobertson
          Path:
          src/main/java/configurationslicing/UnorderedStringSlice.java
          src/main/java/configurationslicing/UnorderedStringSlicer.java
          src/main/java/configurationslicing/parameters/ParametersSlicer.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/52acc7d27206307c1f4446a2372f7b0ca2d709fc
          Log:
          JENKINS-19855

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: jacobrobertson Path: src/main/java/configurationslicing/UnorderedStringSlice.java src/main/java/configurationslicing/UnorderedStringSlicer.java src/main/java/configurationslicing/parameters/ParametersSlicer.java http://jenkins-ci.org/commit/configurationslicing-plugin/52acc7d27206307c1f4446a2372f7b0ca2d709fc Log: JENKINS-19855
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jacob Robertson
          Path:
          pom.xml
          src/main/java/configurationslicing/UnorderedStringSlice.java
          src/main/java/configurationslicing/UnorderedStringSlicer.java
          src/main/java/configurationslicing/parameters/ParametersSlicer.java
          http://jenkins-ci.org/commit/configurationslicing-plugin/4061f3566887d133ad3bd95d07f60535f5a5755e
          Log:
          Merge pull request #2 from jacobrobertson/master

          JENKINS-19855

          Compare: https://github.com/jenkinsci/configurationslicing-plugin/compare/22037900f371...4061f3566887

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jacob Robertson Path: pom.xml src/main/java/configurationslicing/UnorderedStringSlice.java src/main/java/configurationslicing/UnorderedStringSlicer.java src/main/java/configurationslicing/parameters/ParametersSlicer.java http://jenkins-ci.org/commit/configurationslicing-plugin/4061f3566887d133ad3bd95d07f60535f5a5755e Log: Merge pull request #2 from jacobrobertson/master JENKINS-19855 Compare: https://github.com/jenkinsci/configurationslicing-plugin/compare/22037900f371...4061f3566887
          Hide
          jacob_robertson Jacob Robertson added a comment -

          See configuration slicing plugin ver. 1.38.3 for the fix to this issue.

          Show
          jacob_robertson Jacob Robertson added a comment - See configuration slicing plugin ver. 1.38.3 for the fix to this issue.

            People

            • Assignee:
              jacob_robertson Jacob Robertson
              Reporter:
              jacob_robertson Jacob Robertson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: