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

parameters with spaces dont work on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • groovy-plugin
    • None
    • Windows 7 64 bit
      groovy-plugin version 1.25
      jenkins 1.594
      groovy-version 2.3.4

      I cant set script parameters and properties with spaces correctly.

      I have a step "Execute Groovy script" with the command:
      println System.getProperty("param")

      Double qoutes
      The script parameters: -Dparam="a b"
      The Properties: param="a b"

      Both print: null

      Single qoutes
      The script parameters: -Dparam='a b'
      prints: null

      The Properties: param='a b'
      prints: 'a b'
      The string contains the single qoutes

      My workaround is to use properties with single qoutes and remove them within the script.

            vjuranek vjuranek
            stautz85 Sebastian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: