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

I wrote code that checks the 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 if there are broken links or not by checking the returned LinkCheckSummary object.

Now I would like to integrate this into our CI Cruise Control pipeline so that if LinkChecker detects broken links, the assembly is broken.

How to do it?

+4
source share
1 answer

Wrap this in a NAnt task or an MSBuild task and run it as part of the assembly.

+3
source

Source: https://habr.com/ru/post/1368967/


All Articles