powershell taks with variables in parameters - VisualCron - Forum

Community forum

rmeeusen@partena.be
2014-12-04T15:33:04Z
Hi,

I'm using version 7.5.1 and have a problem executing powershell sript files.

Some details:
tasktype = powershell
executed file = {GETENV(SSIS_ETL_TESTRUN)}\Templates\CustomComponentFiles\BAT\GetVersionAPPR006FromTFS.ps1
parametername = targeversion
parametervalue= {USERVAR(MigrationVersion)}

the scripts uses this parameter for :
copy '...\Releases\$targetVersion\...\...

but when executing, the variable wasn't evaluated before the call was made. You can see this in the error log:
Cannot find path ...\Releases\{USERVAR(MigrationVersion)}\...\...

can you help me with this ?

thanks,
ronny
Scroll to Top