开发者

How to add cruisecontrol.net build step based on output of .NET code

开发者 https://www.devze.com 2023-03-31 05:36 出处:网络
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:

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

精彩评论

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

关注公众号