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

DynamicReferenceParameter ET_TEXT_BOX extra quotes

XMLWordPrintable

      Hi,

      When I try to do a simple input text that return a built value from other field it give me extra quotes, not sure if I'm doing something wrong or not

         [
           $class: 'DynamicReferenceParameter',
           choiceType: 'ET_TEXT_BOX',
           name: 'DBInstance',
           referencedParameters: 'Platform,Environment',
           script: [
              $class: 'GroovyScript',
              fallbackScript: [
                classpath: [],
                sandbox: true,
                script: "return ''",
              ],
              script: [
                sandbox: true,
                script: """
                return Platform + "-" + Environment + "-master"
                """.stripIndent()                              
              ]                                                
           ]                                                    

      It give me

      And when I submit the form value from these fields are empty (AwsRegion & DBInstance)


      Regards

            kinow Bruno P. Kinoshita
            benj Benjamin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: