11-04-2015 08:20 AM - edited 03-01-2019 09:18 AM
i am calling below perl script from tidal.
command-/info/run_job.pl
command parameters-
-p <V1.724> -j DEV
the varaibles v1 will change as per the enviornment.For example for v1 i need to pass the value as DEV in dev enviornment,test in qa enviornment,
prod in prod enviornment.current we are changing variable v1 value before migrating to other enviornment.Like this i have different variables which will vary from one enviornment to another enviornment.Is there any way to change values of variables dynamically depends on enviornment?
11-05-2015 12:38 AM
I consider these as Environment Variables which refer to variables that are static for given environment. Granted, there is one time effort set them in each environment.
Let us call it as Environment for simplicity. Which is set to DEV in Dev env and so on.
Let's say we want to use the environment name in a folder name. Then you could use c:\<Environment>Folder which will result in c:\DEVFolder in DEV and C:\TSTFolder in TST and so on. In this case, you are using only one public variable though, instead of 10 variables
Hope this works
Also, please refer to the post below for some interesting discussion on similar scenario
https://supportforums.cisco.com/discussion/12692061/group-variable-issue
11-05-2015 12:38 AM
Thanks for Input.it is one time effort only.I have around 10 variables for each job.Is it possible to change the value of each variable[10 variables] depends on enviornment?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide