-
Bug
-
Resolution: Unresolved
-
Minor
-
None
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
[JENKINS-74791] DynamicReferenceParameter ET_TEXT_BOX extra quotes
Attachment | Original: image-2024-10-31-09-17-01-300.png [ 63482 ] |
Attachment | New: image-2024-10-31-09-28-01-104.png [ 63483 ] |
Description |
Original:
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 {code:java} [ $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() ] ] {code} It give me !image-2024-10-31-09-17-26-727.png! Regards |
New:
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 {code:java} [ $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() ] ] {code} It give me !image-2024-10-31-09-17-26-727.png! And when I submit the form value from these fields are empty (AwsRegion & DBInstance) !image-2024-10-31-09-28-01-104.png! Regards |