I wrote like thisif( __ELEM__(' environments ' ) > 1 ) { my @deployenvs; for($i=0; $i < __ELEM__(' environments' ); $i++) { $deployenvs[$i] = __VALUE__(' environments[$i] '); }}is this correct
my @deployenvs = __VALUE__('environments');
my $deployenvs = join("|", __VALUE__('environments'));
deploy_envs
my @envs = split('|', $job->GetVariable("deploy_envs"));
Where can I set the variable , in <template_script> tag itself or in <externaltask>
Ok I read the manuals and here is what I came up withI did as in the attached file ,but it is giving me an error that it is not well formed at the variable tag.If I say value="$deployenvs" it is literally taking $deployenvs as value but not what is contained in it.Now what?
... <variable key="deploy_envs" value="__INSERT__('$deployenvs');"/> ...
I tried it but no luck still getting $deployenvs as the value of the variable