|
CruiseControl.NET : Rake Task
This page last changed on Dec 03, 2009 by csut017.
Rake TaskExecutes Rake. VersionAvailable from version 1.4 ExamplesMinimalist example <rake />
Full example <rake> <executable>c:\ruby\bin\rake.bat</executable> <baseDirectory>c:\fromcvs\myrepo\myproject</baseDirectory> <buildArgs>additional-argument</buildArgs> <rakefile>Rakefile</rakefile> <targetList> <target>build</target> </targetList> <buildTimeoutSeconds>1200</buildTimeoutSeconds> <quiet>false</quiet> <silent>false</silent> <trace>true</trace> </rake> Configuration Elements
NotesAccessing CruiseControl.NET build labels in RakeCCNet will pass the current build label to Rake via the environment variable CCNetLabel. This means that you can access this variable too. For example, archive the build results in a folder with the same name as the build label (this is what we do on CCNetLive using NAnt. Here's some example Rakefile demonstrating how to do this: #!ruby
require 'rake'
task :default => [:deploy]
task :deploy do
publishdir="C:/download-area/CCNet-Builds/#{ENV['CCNetLabel']}"
mkdir_p publishdir
FileList['dist/*'].each do |file|
cp file, publishdir
end
end
See Integration Properties for the values that are passed to the task.
|
| Document generated by Confluence on Jan 23, 2011 08:52 |