Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Open Deployment to execute only on successful DNR
s6634
Hi,
I need to execute Open Deployment Script only on succeful execution of DNR Script which will be executed before, always.
This DNR Script returns a string value error/success and the Open Deployment should execute only if the returned value is Success.
Could any one guide me in this.
Thx,
Kumar
Find more posts tagged with
Comments
Adam Stoller
Check the OpenDeploy Administration Guide, p. 278, and see if that answers your questions. If not, can you be more precise in what it is you are trying to do, and how you are trying to do it?
--fish
(Interwoven Senior Technical Consultant)
s6634
Hi Fish,
Thanks for your reply. I am able to come out with the solution. I was trying to execute a DNR Script before Open Deployment and this script returns a value ERROR/SUCCESS.
I need to execute the OD only if the value is "SUCCESS".
I resolved this by running a dummy deployment with the aforesaid script and if it is succesful, I can execute the OD other wise I can terminate it.
Thanks once again for your prompt reply.
-Kumar
Adam Stoller
If the script run via DNR sends the little XML snippet to STDOUT - it should achieve what you want *without* having to run a separate deployment first. Is that not working for you? or do you not understand what that means?
--fish
(Interwoven Senior Technical Consultant)
s6634
Hi Fish,
I understood the concept.
As mentioned earlier thro' DNR script, I am catching the output and using the same before running the actual deployment.
Thanks,
-Kumar
Migrateduser
hmmm... you bring up an interesting use case where the deployment is conditionally executed depending on a DNR result, applicable only to pre-deploy DNR points.
Currently, OD only supports post-transfer DNR points that
conditionally run depending on result of the OD transfer.
Adam Stoller
I just wrote a very simple deployment configuration file which called a very simple DNR script with:
location="target"
when="before"
state="always"
The DNR script simply spits out the requisite XML snippet to indicate failure:
print "< response code='-2'/>\n"; exit(1);
I ran the deployment and it indicated that it failed.CAVEAT: I'm now using OpenDeploy 5.6 Beta - but I'm not using any of the new DNR trigger points - so I believe this should work just fine with OpenDeploy 5.5.1 SP2 on Windows too.
--fish
(Interwoven Senior Technical Consultant)