50 lines
5.8 KiB
HTML
Executable File
50 lines
5.8 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title>CruiseControl.NET : Task Blocks</title>
|
|
<link rel="stylesheet" href="styles/site.css" type="text/css" />
|
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
</head>
|
|
|
|
<body>
|
|
<table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
|
|
<tr>
|
|
<td valign="top" class="pagebody">
|
|
<div class="pageheader">
|
|
<span class="pagetitle">
|
|
CruiseControl.NET : Task Blocks
|
|
</span>
|
|
</div>
|
|
<div class="pagesubheading">
|
|
This page last changed on Mar 14, 2009 by <font color="#0050B2">dcameron</font>.
|
|
</div>
|
|
|
|
<p><em>Task Blocks</em> are the action elements of CruiseControl.Net. They're the elements that do things, like executing a program, running tests, or send email results.</p>
|
|
|
|
<p>Task blocks must appear in the <tt><prebuild></tt> section, the <tt><tasks></tt> section or the <tt><publishers></tt> section. The <tt><tasks></tt> section is always run before the <tt><publishers></tt> section, regardless of the order in which they appear. However, within each of these sections, the tasks are run in the order they appear.</p>
|
|
|
|
<p>The types of Task Block are:</p>
|
|
|
|
<ul><li><a href="Artifact Cleanup Publisher.html" title="Artifact Cleanup Publisher">Artifact Cleanup Publisher</a></li><li><a href="Build Publisher.html" title="Build Publisher">Build Publisher</a></li><li><a href="Email Publisher.html" title="Email Publisher">Email Publisher</a></li><li><a href="Executable Task.html" title="Executable Task">Executable Task</a></li><li><a href="File Merge Task.html" title="File Merge Task">File Merge Task</a></li><li><a href="FinalBuilder Task.html" title="FinalBuilder Task">FinalBuilder Task</a></li><li><a href="ForceBuildPublisher.html" title="ForceBuildPublisher">ForceBuildPublisher</a></li><li><a href="Gendarme Task.html" title="Gendarme Task">Gendarme Task</a></li><li><a href="Modification Reader Task.html" title="Modification Reader Task">Modification Reader Task</a></li><li><a href="Modification Writer Task.html" title="Modification Writer Task">Modification Writer Task</a></li><li><a href="ModificationHistory Publisher.html" title="ModificationHistory Publisher">ModificationHistory Publisher</a></li><li><a href="MsBuild Task.html" title="MsBuild Task">MsBuild Task</a></li><li><a href="NAnt Task.html" title="NAnt Task">NAnt Task</a></li><li><a href="Null Task.html" title="Null Task">Null Task</a></li><li><a href="NUnit Task.html" title="NUnit Task">NUnit Task</a></li><li><a href="Rake Task.html" title="Rake Task">Rake Task</a></li><li><a href="RSS Publisher.html" title="RSS Publisher">RSS Publisher</a></li><li><a href="Statistics Publisher.html" title="Statistics Publisher">Statistics Publisher</a></li><li><a href="Visual Studio Task.html" title="Visual Studio Task">Visual Studio Task</a></li><li><a href="Xml Log Publisher.html" title="Xml Log Publisher">Xml Log Publisher</a></li></ul>
|
|
|
|
<p>The <tt><prebuild></tt> section is intended for tasks which need to be run before the build starts, including the sourcecontrol operation.</p>
|
|
|
|
<p>The <tt><tasks></tt> section is intended for build tasks, such as a <a href="NAnt Task.html" title="NAnt Task">NAnt Task</a> or <a href="MsBuild Task.html" title="MsBuild Task">MsBuild Task</a>. If any of these build tasks fail, no further tasks in this section will be executed. Instead, CruiseControl.Net will skip to the <tt><publishers></tt> section. Thus the task that publish the results of the build should usually be placed in the <tt><publishers></tt> section.</p>
|
|
|
|
<p>The <tt><publishers></tt> section is run after the build completes (whether it passes or fails). This is where you aggregate and publish the build results. The <tt><publishers></tt> section typically starts with a <tt><merge></tt> task to collect any output from other tools, so that the results can be shown on the dashboard. Next, the <a href="Xml Log Publisher.html" title="Xml Log Publisher">Xml Log Publisher</a> task is required to include the CruiseControl.Net XML output. Finally you might have one or more <a href="Email Publisher.html" title="Email Publisher">Email Publisher</a> tasks. Note that you can still use any of the other tasks here. For example, you might run a <a href="NAnt Task.html" title="NAnt Task">NAnt Task</a> that preprocesses the output files before merging them into CruiseControl's output stream.</p>
|
|
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Historical Note</b><br /> Publishers and Tasks were different objects in earlier version of ccnet. Now they are interchangeable, and can appear either in the <tt><prebuild></tt> section, the <tt><tasks></tt> section, or the <tt><publishers></tt> section of the <b>ccnet.config</b> file depending on whether they should be run before, during or after the build.</td></tr></table></div>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td height="12" background="http://confluence.public.thoughtworks.org//images/border/border_bottom.gif"><img src="images/border/spacer.gif" width="1" height="1" border="0"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center"><font color="grey">Document generated by Confluence on Mar 14, 2009 02:55</font></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |