I tried adding my variable in:
{Rundeck-Path}/etc/project.properties
as
project.globals.test=myvalue
And trying to access it from an inline script as
echo @globals.test@
however it does not print the value, instead I get an empty string, any idea what am I doing wrong here?
The project.properties
config isn't a "real file" anymore (on Rundeck 2.X and 3.0.X it does), that information is stored on the internal Rundeck Database.
To add globals on the project.properties
follow these steps:
project.globals.myglobal=hello
in a new line and Save.@globals.myglobal@
in any inline-script step, you can see the global content.