I'd like to store ccnet.config
file (or other cc.net configuration file for this project) in the repository (git) of my project and make CC.NET use it when I force building from dashboard. How can I do it?
Thank you!
I'd like to store ccnet.config
file (or other cc.net configuration file for this project) in the repository (git) of my project and make CC.NET use it when I force building from dashboard. How can I do it?
Thank you!
Take a look at the scenario's at http://www.cruisecontrolnet.org/projects/ccnet/wiki/Build_Server_Scenarios
There are build scripts foreseen in each step where you can base yourself on.
Your "ccnet.config" should remain fairly static.
If you need different "logic" for your solution/project building, then I suggest:
If you think of CC.NET as a "super fancy msbuild.exe executor", you're world will make more sense IMHO.
Here is a very basic msbuild (definition) file. You can call it
MySolutionMasterBuild.proj (or similar)
Put this in the same directory as your .sln file (in source control).
Use CC.NET to download the code. Then wire up msbuild.exe to call the below file.
Then have any extra logic inside the .proj file.
You can do some of the other CC.NET stuff, like post build emailing and merging any results xml, but the majority of the logic (my preference anyways)..........would be in the file below.