<deployment transactional="yes"> <dnrDeploymentJob location="source" when="after" state="success"> <script cmd="/export/home/usr1/scipts/yourscript" as="usr1" async="no" /> </dnrDeploymentJob> <execDeploymentTask useDefinition="edition"> </execDeploymentTask></deployment>
state="success"
As far as I know, the best way to do this is to use a dnrDeploymentJob element.Example code: <deployment transactional="yes"> <dnrDeploymentJob location="source" when="after" state="success"> <script cmd="/export/home/usr1/scipts/yourscript" as="usr1" async="no" /> </dnrDeploymentJob> <execDeploymentTask useDefinition="edition"> </execDeploymentTask></deployment> The state="success" attribute is valuable, as it means that your batch won't run if the deployment didn't work.