I have a transactional job which runs a macro level script using dnrDeploymentJob before the deployment. If I return <response code="-2" /> from the script, the deployment runs regardless and the deployment shows as completing successfully.i have had to put in a workaround for this. I set an environment variable in the validation script. then i run a dnr script, executing before the deployment. This script outputs the <response code="-2" /> and the deployment fails as expected.is there anyway to get the deployment to fail when the deploymenmt-level trigger fails? Or do they act independently of each other? I have attached part of the the script below:<deployment transactional="yes"> <dnrDeploymentJob location="source" when="before" state="always"> <script async="no" cmd="C:\WINDOWS\system32\cscript.exe C:\scripts\od_prebuild.vbs"/> </dnrDeploymentJob> <execDeploymentTask useDefinition="Build"> <deployNRun> <dnrDeployment location="source" when="before"> <script async="no" cmd="C:\WINDOWS\system32\cscript.exe C:\scripts\od_checkstatus.vbs //NoLogo"/> </dnrDeployment> </deployNRun> </execDeploymentTask> <dnrDeploymentJob location="source" when="after" state="failure"> <script async="no" cmd="failure script path...."/> </dnrDeploymentJob> <dnrDeploymentJob location="source" when="after" state="success"> <script async="no" cmd="success script path..."/> </dnrDeploymentJob></deployment>
#!path/to/iwperlprint qq[<response code="-2"/>\n];exit 0;
<script async="no" cmd="path/to/iwperl path/to/perl/script"/>
i replaced the vbscript with calling a perl script to just output the failure response. Deployment still completes woith no failures.OD admin guide pg 218 there is a table for deployment level triggers. Does this mean the deployment level triggers should never affect whether the deployment is run or not?Windows 2003 StandardOpenDeploy 6.1
yeah it seems that way. although, the documentation does refer to returning the -2 response code XML from the deployment-level trigger if it fails. But if everything ignores that repsonse code. whats the point? in case one day this feature is implemented. the doco makes me think something must look at that response.