How to define Global Variables within Scripts, i.e. "on the fly"?

Hi kazurayam,

indeed, that sounds like a very good idea to me! Why hasn’t anyone thought of it yet, or has it?

The fact that this “container” can be the basis for any varying and extensive content also makes this approach very interesting for another idea that is gradually maturing in me: A PowerShell script with which I can create a completely preconfigured standard project for the specific needs and workflows in my company from any combination of template files. Because in this case I would (hopefully) hardly have to edit any file contents “on the fly”, but perhaps only need to have the necessary Groovy package files and configuration data sources copied to the right places. Do you think this could work?

But I want to take a closer look at Russ’s public variables approach first …

Many thanks again + regards!