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

Groovy-Plugin does not expand Job-Parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • groovy-plugin
    • None
    • Windows, Jenkins 1.413, Groovy Plugin 1.8

      If I create a text parameter "test" in a Job and configure the Groovy Plugin to call a script with this parameter, it is not expanded:

      Groovy Script file: test.groovy
      Script parameters: ${test}

      Will result in:

      <pathToGroovy>/bin/groovy.bat <Workspace>/test.groovy ${test}

      System properties like MAVEN_HOME are expanded as expected when passed as ${MAVEN_HOME}.

      The same works great with the maven build.

            vjuranek vjuranek
            mvonrenteln Marc von Renteln
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: