Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I created a job which uses several context variables. I defined all context variables with context groups for a development environment and a production environment. So when I run the job, I can select the development environment or the production environment.
Everything works fine.
Now, I build my job and want to execute the .BAT file using the Windows Task Scheduler. How do I switch between my development and production environment?
I'm aware that I can set context variables using parameters with the BAT file. Is there also some parameter which I can use to select the environment?
Just found the solution.
When building the job just select:
Hello,
you can also use the same bat file with the same jar
Just, update the script and change --context=DEV to --context=PRODUCTION. Save the bat file and it will lunch the prod context
@Belaid Momo , yes you can change in .bat/.sh file --context parameter.
Thanks,
Manohar