开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜