Cruisecontrol actions after a successful build?
I am using cruisecontrol (phpCruiseControl to be precise) as a CI server and have my build script running on an automated basis. Is there anyway to add tasks to the cruisecontrol con开发者_运维百科fig script to be actions upon a successful build?
Thanks
I only have experience with the Java based CruiseControl so I don't really know if phpCruiseControl is any different but for the "common" CruiseControl you can define in the configuration file (usually config.xml) you have the option of adding "publishers". These run after the build completed. In reply to your question, you need to add to the configuration an <onsuccess> element under the publishers section in it you can call whatever publisher you like. read the documentation for the explanation. Basically you want something like this:
<cruisecontrol>
<project>
<publishers>
<onsuccess>
<antpublisher buildfile="myTasks.xml">
...
精彩评论