0

I want to know which scripting language can be used for to make automated .net build through cruise control and clear case.

.net has references which needs to be mentioned while building.

I am using cruise control integrated with clear case.

2 Answers 2

0

Although CC does support many build engines, http://cruisecontrol.sourceforge.net/, but none of them are quite popular in .NET world.

If you are using CruiseControl (not CruiseControl .NET), there is no built in support for MSBuild, and you have to use <exec> to launch MSBuild.exe from .NET Framework installation folder, (one hop)

http://cruisecontrol.sourceforge.net/main/configxml.html#exec

Or you can call NAnt from CC, and use the task in NAnt to execute MSBuild for project compilation. (two hops then)

Sign up to request clarification or add additional context in comments.

2 Comments

Can you please provide a sample NANT script which have will use .net reference while build
Nope. You don't need to use .NET reference in NAnt. Simply call <msbuild> task to invoke MSBuild.exe, who reads sln/csproj/vbproj files to perform the compilation, such as nantcontrib.sourceforge.net/release/0.85-rc4/help/tasks/…
0

Considering CruiseControl can call about any script you want, you can use:

NAnt example:

<exec program="cmd" commandline="/c cd /path/to/view" />
<exec program="cleartool" commandline="yourClearToolCommand" /> 

Those scripts will be triggered by one of the ClearCase triggers integrated with CruiseControl.

3 Comments

Can NANT scripts can be used ?
@user1383839 If NANT script can make system call (in order to call cleartool, and to read the stdout and stderr of a system command), then yes.
@user1383839 I just added an NANT (very small) example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.