KBEC-00341 - How to pass parameters to dsl script?

Article ID:360032826952
1 minute readKnowledge base
On this page

You need to use double quotes and escape the "JSON internal" ones.

So something like the following should work on Windows:

ectool evalDsl --dslFile file.groovy --parameters "{\"name\":\"value\"}"

Applies to

  • Product versions: CloudBees CD (CloudBees Flow) 6.0 or later

  • OS versions: Windows

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.