187 lines
9.6 KiB
HTML
Executable File
187 lines
9.6 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 : Alienbrain Source Control Block</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 : Alienbrain Source Control Block
|
|
</span>
|
|
</div>
|
|
<div class="pagesubheading">
|
|
This page last changed on Sep 11, 2008 by <font color="#0050B2">williams</font>.
|
|
</div>
|
|
|
|
<h3><a name="AlienbrainSourceControlBlock-AlienbrainConfigurationExamples"></a>Alienbrain Configuration Examples</h3>
|
|
|
|
<p><em>Example using defaults:</em></p>
|
|
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
|
|
<pre class="code-xml"><span class="code-tag"><sourcecontrol type=<span class="code-quote">"alienbrain"</span>></span>
|
|
<span class="code-tag"><server></span>MyServer<span class="code-tag"></server></span>
|
|
<span class="code-tag"><database></span>MyDatabase<span class="code-tag"></database></span>
|
|
<span class="code-tag"><username></span>Username<span class="code-tag"></username></span>
|
|
<span class="code-tag"><password></span>Password<span class="code-tag"></password></span>
|
|
<span class="code-tag"><project></span>ab://myprojectpath<span class="code-tag"></project></span>
|
|
<span class="code-tag"></sourcecontrol></span></pre>
|
|
</div></div>
|
|
<p><em>Full example:</em></p>
|
|
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
|
|
<pre class="code-xml"><span class="code-tag"><sourcecontrol type=<span class="code-quote">"alienbrain"</span>></span>
|
|
<span class="code-tag"><server></span>MyServer<span class="code-tag"></server></span>
|
|
<span class="code-tag"><database></span>MyDatabase<span class="code-tag"></database></span>
|
|
<span class="code-tag"><username></span>Username<span class="code-tag"></username></span>
|
|
<span class="code-tag"><password></span>Password<span class="code-tag"></password></span>
|
|
<span class="code-tag"><project></span>ab://myprojectpath<span class="code-tag"></project></span>
|
|
<span class="code-tag"><executable></span>c:\alienbrain\ab.exe<span class="code-tag"></executable></span>
|
|
<span class="code-tag"><workingDirectory></span>d:\code<span class="code-tag"></workingDirectory></span>
|
|
<span class="code-tag"><branch></span>Root Branch/Branch1<span class="code-tag"></branch></span>
|
|
<span class="code-tag"><autoGetSource></span>true<span class="code-tag"></autoGetSource></span>
|
|
<span class="code-tag"><labelOnSuccess></span>true<span class="code-tag"></labelOnSuccess></span>
|
|
<span class="code-tag"><timeout units=<span class="code-quote">"minutes"</span>></span>10<span class="code-tag"></timeout></span>
|
|
<span class="code-tag"></sourcecontrol></span></pre>
|
|
</div></div>
|
|
|
|
<h3><a name="AlienbrainSourceControlBlock-ConfigurationElements"></a>Configuration Elements</h3>
|
|
|
|
<table class='confluenceTable'><tbody>
|
|
<tr>
|
|
<th class='confluenceTh'> Node </th>
|
|
<th class='confluenceTh'> Description </th>
|
|
<th class='confluenceTh'> Type </th>
|
|
<th class='confluenceTh'> Required </th>
|
|
<th class='confluenceTh'> Default </th>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> server </td>
|
|
<td class='confluenceTd'> Alienbrain server hostname or ip adress. The list of valid server name and ip adresses are listed in the File, Connect to project database, Step 1, list box. </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> true </td>
|
|
<td class='confluenceTd'> n.a. </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> database </td>
|
|
<td class='confluenceTd'> Alienbrain project database name. The list of valid project databases are listed in the File, Connect to project database, Step 2, list box. </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> true </td>
|
|
<td class='confluenceTd'> n.a. </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> username </td>
|
|
<td class='confluenceTd'> The name of the user you want to use to connect to the server project database </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> true </td>
|
|
<td class='confluenceTd'> n.a. </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> password </td>
|
|
<td class='confluenceTd'> The password of the user you want to use to connect to the server project database </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> true </td>
|
|
<td class='confluenceTd'> n.a. </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> project </td>
|
|
<td class='confluenceTd'> This is the path of to monitor the file changes. Use alienbrain://Code or ab://Code project path format </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> true </td>
|
|
<td class='confluenceTd'> n.a. </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> workingDirectory </td>
|
|
<td class='confluenceTd'> The path where the get latest will update the files. </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> false </td>
|
|
<td class='confluenceTd'> "" (mean default source control defined directory </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> branch </td>
|
|
<td class='confluenceTd'> The path of the branch specification. to enumarate the name of the branches, use the ab enumbranch command line. </td>
|
|
<td class='confluenceTd'> string </td>
|
|
<td class='confluenceTd'> false </td>
|
|
<td class='confluenceTd'> "" (mean Root Branch) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> autoGetSource </td>
|
|
<td class='confluenceTd'> Specifies whether the current version of the source should be retrieved from Alienbrain. </td>
|
|
<td class='confluenceTd'> bool </td>
|
|
<td class='confluenceTd'> false </td>
|
|
<td class='confluenceTd'> true </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> labelOnSuccess </td>
|
|
<td class='confluenceTd'> Specifies whether or not the repository should be labelled after a successful build </td>
|
|
<td class='confluenceTd'> bool </td>
|
|
<td class='confluenceTd'> false </td>
|
|
<td class='confluenceTd'> false </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> timeout </td>
|
|
<td class='confluenceTd'> Sets the timeout period for the source control operation. See <a href="Timeout Configuration.html" title="Timeout Configuration">Timeout Configuration</a> for details. </td>
|
|
<td class='confluenceTd'> Timeout </td>
|
|
<td class='confluenceTd'> no </td>
|
|
<td class='confluenceTd'> 10 minutes </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> issueUrlBuilder </td>
|
|
<td class='confluenceTd'> Converts the comment (or parts from it) into an url pointing to the issue for this build. <br clear="all" />
|
|
See <a href="IssueUrlBuilder.html" title="IssueUrlBuilder">Issue Builder</a> for more details <br clear="all" /> </td>
|
|
<td class='confluenceTd'> Group </td>
|
|
<td class='confluenceTd'> N/A </td>
|
|
<td class='confluenceTd'> false <br clear="all" /> </td>
|
|
</tr>
|
|
</tbody></table>
|
|
|
|
<h3><a name="AlienbrainSourceControlBlock-AlienbrainNotes"></a>Alienbrain Notes</h3>
|
|
|
|
<p>Current implementation of alienbrain use the following commands:</p>
|
|
<table class='confluenceTable'><tbody>
|
|
<tr>
|
|
<th class='confluenceTh'> Action </th>
|
|
<th class='confluenceTh'> command </th>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> Branch </td>
|
|
<td class='confluenceTd'> ab setactivebranch "Root Branch" -s "MyServer" -d "MyProject Database" -u "MyUsername" -p "MyPassword" </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> Modifications </td>
|
|
<td class='confluenceTd'> ab find "ab://MyPath" -s "MyServer" -d "MyProject Database" -u "MyUsername" -p "MyPassword" -regex "SCIT > 127771952139476549 AND SCIT < 127771952139476550" -format "#CheckInComment#|#Name#|#DbPath#|#SCIT#|#Mime Type#|#LocalPath#|#Changed By#|#NxN_VersionNumber#" </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> Label </td>
|
|
<td class='confluenceTd'> ab setlabel "ab://MyPath" -s "MyServer" -d "MyProject Database" -u "MyUsername" -p "MyPassword" -name "LabelnameprovidedbyCCNET" -comment "This label is brought to you by CruiseControl.NET" </td>
|
|
</tr>
|
|
<tr>
|
|
<td class='confluenceTd'> Get Latest </td>
|
|
<td class='confluenceTd'> ab getlatest "ab://MyPath" -s "MyServer" -d "MyProject Database" -u "MyUsername" -p "MyPassword" -localpath "Workingdir" -overwritewritable replace -overwritecheckedout replace -response:GetLatest.PathInvalid y -response:GetLatest.Writable y -response:GetLatest.CheckedOut y </td>
|
|
</tr>
|
|
</tbody></table>
|
|
|
|
<h3><a name="AlienbrainSourceControlBlock-Contributions"></a>Contributions</h3>
|
|
|
|
<ul>
|
|
<li>Alienbrain support added by Francis Tremblay</li>
|
|
</ul>
|
|
|
|
|
|
|
|
</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> |