Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I would like to know if there is a way to get sh / bat arguments through the job.
I know how to use context and properties file to get external variable values, but my question here is specific to sh or bat files through the run command line.
Thanks ! 🙂
Hi
I am not sure whether I understand your question well, if you are trying to pass new values to context variables when executing the job through the run command line, please try:
>jobName.bat --context=Default --context_param var1=value1--context_param var2=value2
Regards
Shong
A good method is to use the implicit context load and setup the path to the context properties file with a context variable. This way you can steer which context file the job will read.
Example:
my_job_run.bat --context_param context_file_path=/var/data/config/context-prod.properties