cancel
Showing results for 
Search instead for 
Did you mean: 

Sending emails when a snapshot is deployed

xmaniac
Champ in-the-making
Champ in-the-making
Any chance that I can intercept the deploy action and invoke a custom script? In my case I need to inform the editors that the modified files are being finally deployed.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
You can spring in a DeploymentCallback into the configuredCallbacks property of AVMDeployWebSiteAction which can send your email.

Or you may be able to use the postCommit callbacks from one of the targets?   I'd go with the first option.

xmaniac
Champ in-the-making
Champ in-the-making
You can spring in a DeploymentCallback into the configuredCallbacks property of AVMDeployWebSiteAction which can send your email.

Or you may be able to use the postCommit callbacks from one of the targets?   I'd go with the first option.
I have considered the second option already and seems very easy to implement but has some drawbacks like having to code the mailing myself (configure servers, addresses et al).

Unfortunately, I'm not sure I can follow you with the first option. I've read http://wiki.alfresco.com/wiki/WCM_Deployment_Features#Code and see the references to AVMDeployWebSiteAction and DeploymentCallback but I can't find where the configuration lies in my installaction. I'm not sure if it would help me with the mailing code either (it's pure Java, isn't it?). Could you please elaborate a little bit more?

jainkumar11
Champ in-the-making
Champ in-the-making
Hi ,
I hope you must have tried some thing for option 1 if you could share some inputs on that It will be great.

Looking forward for your help.

Thanks in advance.
KJ