ccnet-config

mercurial support in CruiseControl.NET - how to clean & update build folder?

馋奶兔 提交于 2019-12-03 12:42:13
问题 I'm using the Mercurial source control block in CruiseControl.NET, and I have it set to autoGetSource but some of the files (such as version number, based on current time) change as part of the build. So for the next build, some of the files are changed so autoGetSource fails. Is there a way I can tell CruiseControl.NET to do a hg update -C so changed files aren't a problem. Or is there a better way of cleaning out my build folder before starting a build? 回答1: In a hgrc file, either in the

mercurial support in CruiseControl.NET - how to clean & update build folder?

放肆的年华 提交于 2019-12-03 02:58:43
I'm using the Mercurial source control block in CruiseControl.NET, and I have it set to autoGetSource but some of the files (such as version number, based on current time) change as part of the build. So for the next build, some of the files are changed so autoGetSource fails. Is there a way I can tell CruiseControl.NET to do a hg update -C so changed files aren't a problem. Or is there a better way of cleaning out my build folder before starting a build? In a hgrc file, either in the project, on the CC server, or in the CC user's profile directory, you could put: [defaults] update = -C or

How to setup building steps for CruiseControl.net from repository of the building project?

核能气质少年 提交于 2019-12-02 11:55:00
问题 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! 回答1: Your "ccnet.config" should remain fairly static. If you need different "logic" for your solution/project building, then I suggest: 1. Write your ccnet.config code to pull source code from repository. (aka, Task #1) 2. In your repository, include a MasterBuild.proj (msbuild

How to setup building steps for CruiseControl.net from repository of the building project?

岁酱吖の 提交于 2019-12-02 05:23:11
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! Your "ccnet.config" should remain fairly static. If you need different "logic" for your solution/project building, then I suggest: 1. Write your ccnet.config code to pull source code from repository. (aka, Task #1) 2. In your repository, include a MasterBuild.proj (msbuild definition). 3. Have cc.net call msbuild.exe on MasterBuild.proj (aka, Task #2). 4. Have the majority of your

make ccnet self test

孤人 提交于 2019-12-01 12:45:20
问题 i want to run a test project in ccnet, can anyone help? i am not using NUnit. I am using [Test Class()] attribute in my web project, and wanna run this project from ccnet 回答1: It appears the test framework would be MsTest In order to run MsTest on the build server you have to install visual studio or do a work around or hack (alternate hack). Then you can use MsTest.exe Here is the official documentation on running MSTest tests. Similar question and more hacks or work-arounds 回答2: If you're

How to make msbuild do not rebuild all projects

自闭症网瘾萝莉.ら 提交于 2019-12-01 02:17:35
We have CCnet+msbuild+tfs. Builds are configured for each project. We didnt build with solution. The problem is how should we configure build to not rebuild all projects again if we make only 1 change relevant to one exact project in source control ? Is there any way to make some condition, and where should we specifu it ? When calling msbuild use Build as target and not ReBuild. Also make sure you don't change the date of the source files and not to remove any intermediate debug files. Like Lars said, you have to build it with "Build" target. If projects are still rebuilding, you have to

How to make msbuild do not rebuild all projects

不打扰是莪最后的温柔 提交于 2019-11-30 21:05:46
问题 We have CCnet+msbuild+tfs. Builds are configured for each project. We didnt build with solution. The problem is how should we configure build to not rebuild all projects again if we make only 1 change relevant to one exact project in source control ? Is there any way to make some condition, and where should we specifu it ? 回答1: When calling msbuild use Build as target and not ReBuild. Also make sure you don't change the date of the source files and not to remove any intermediate debug files.

How do I share a label value between multiple CruiseControl.NET builds?

心不动则不痛 提交于 2019-11-30 15:35:55
I have two projects set up in CruiseControl.NET: CI build and nightly build. Both of them execute the same NAnt script, but with different parameters. The CruiseControl.NET label (currently generated by the DefaultLabeler ) is embedded into AssemblyInfo as the build part of the version (for example, MajorVersion.MinorVersion.CCNET_Label.SVN_Revision ). For more consistent versioning I would like both projects to share the same CruiseControl.NET label value. I have investigated the labelers that are available as part of the CruiseControl.NET installation, but I could not find one that does what

CruiseControl.NET: using $(CCNetLabel ) inside ccnet.config file

社会主义新天地 提交于 2019-11-27 10:54:30
问题 When calling external processes like MSBuild cruise control sets environment variables. One of values is CCNetLabel. it holds the value of the current projects label. I want to use the same values in ccnet config itself but when I try ccnet config has a problem. I get the following error: [CCNet Server:ERROR] INTERNAL ERROR: Reference to unknown symbol CCNetLabel ---------- ThoughtWorks.CruiseControl.Core.Config.Preprocessor.EvaluationException: Reference to unknown symbol CCNetLabel at