How to add cruisecontrol.net build step based on output of .NET code
I have written some code which checks a site for broken links using the IIS SEO toolkit API. The interface for the code is nice and simple, see below:
public interface ILinkChecker
{
/// <summary>
/// Checks links in the website containing the supplied URL and returns a LinkCheckSummary instance detailing the 开发者_如何学运维results.
/// </summary>
/// <param name="url">The URL.</param>
/// <returns>A LinkCheckSummary instance detailing the results of the check.</returns>
LinkCheckSummary CheckLinks(string url);
}
I can determine whether there are broken links or not by checking the returned LinkCheckSummary
object.
I would now like to integrate this into our Cruise Control CI pipeline so that if the LinkChecker detects broken links, the build is broken.
How do I do this?
Wrap this in a NAnt task or an MSBuild task and execute it as a part of the build.
精彩评论