Automap: Include Automap settings/variables in scripts

Summary

Enhance Automap scripting to allow the inclusion of any Automap setting as a parameters. Especially would like to pass Automap Variable values to scripts

Detailed Description

We have scripts that do a lot of post-procesing (or sometimes pre-processing) after running a job. We need to be able to pass some job-specific information to the scripts. The scripts are otherwise pretty generic.

Use Cases

Use Automap variables 'p.Product' and 'v.Version' in an Automap script:

if ${ErrorCount}==0 (
echo Moving files to Web server
rmdir /S /Q "C:\Inetpub\wwwroot\${variable:p.Product}\${variable:v.Version}"
mkdir "C:\Inetpub\wwwroot\${variable:p.Product}\${variable:v.Version}"
xcopy /E ${DeployFolder}\* "C:\Inetpub\wwwroot\${variable:p.Product}\${variable:v.Version}\"
)

Pass the variables to an external (generic) script:

call generic_script.bat ${variable:p.Product} ${variable:v.Version}


:) :)) :( ;) :\ |) X-( B)

Enhancements/Automap: Pass settings/variables to scripts (last edited 2012-05-03 18:23:40 by MikeHedblom)