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

Support expansion of parameters that has spaces in the name

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Minor Minor
    • token-macro-plugin
    • None

      I have a parameter like following:

      stringParam {
        trim(true)
        name('Version to install')
        defaultValue('')
        description('The version to install.')
      }
      

      Which I can use in Jenkinsfiles like:

      echo params.'Version to install'
      

      However, they apparently cannot be expanded by token macro (when referenced in other parameters as well).

      It would be really nice if that could work. Maybe something like:

      ${Version\ to\ install}

            slide_o_mix Alex Earl
            felipecassiors Felipe Santos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: