teamcity

Teamcity SetParameter doesn't seem to be working

删除回忆录丶 提交于 2019-12-03 16:58:12
问题 As the first step in a build configuration I am trying to dynamically change a parameter and use it in the subsequent steps. Reading online, it seems that the way to do this is to call ##teamcity[setParameter . But this doesn't seem to be working. It doesn't even change the value in the same step. For example, I have created a test parameter and set it's default value to '1'. Inside a powershell script, I tried to change it to 2, as shown below. But the output remains unchanged as can be seen

How do I improve teamcity build performance?

青春壹個敷衍的年華 提交于 2019-12-03 16:56:29
问题 I have the following steps for my project: build unit tests test coverage duplicates finder fx cop Is there any way to make TeamCity execute 2-5 steps in parallel? Can I use several build agents for that? 回答1: Yes. Assuming you have at least four build agents, you can do the following: Under MyProject , define 5 build configurations ( Build , Unit Tests , etc). Edit build configurations 2-5, and define a new Trigger in Build Triggering (Choose Finish Build Trigger , and set it to run after a

How to install nUnit 3 nunit3-console.exe in TeamCity 9.x

穿精又带淫゛_ 提交于 2019-12-03 16:53:44
问题 NUnit 3.0 is supported by TeamCity 9.1.x now however you have to install the runner and specify the path to the nunit3.console.exe in the step. My question is where do I copy the nunit3-console.exe? Do I have to put this on all the agents? Do I put it in a directory on my main TeamCity server and it will get shared or pulled by the agents? There doesn't seem to be good documentation on where to copy these files so that all the agents can use them. 回答1: You should have the NUnit console on the

Differences between Visual Studio (.sln) build runner and MSBuild

耗尽温柔 提交于 2019-12-03 16:16:20
问题 I'm trying to set TeamCity to do a CI using .Net and configuring build runners I have: Visual Studio (sln) MSBuild Visual Studio 2003 What's the difference? Why three build to work on the same type of project? (With the exception of 2003 which is only for 2003 I believe, Why?) Taking the issue, we have this build runners for .exe files: .NET Process Runner Command Line The "Command Line" build runner not works with any .net assembly? Why the .Net Process Runner? 回答1: Visual Studio (sln) If

TeamCity + WiX + MSBuild workflow suggestions needed

*爱你&永不变心* 提交于 2019-12-03 15:46:22
I've been working on the next step of my continuous integration project, which is to get TeamCity to build my application, automatically change the version number of all assemblies, and then create an installer. A little background first: I've been running TeamCity successfully for the past several months, and it builds my configurations and runs my NUnit and NCover tests just fine. I took a little time researching installers -- I have always hated InstallShield and never considered it for my current application. I like NSIS, but then happened to come across WiX . I don't have any intimate

How can you link version numbers between build configurations of a TeamCity project?

自作多情 提交于 2019-12-03 15:43:56
问题 I'd like to have 3 distinct builds within a TeamCity project (Development, QA, Production). With the dependencies linked (Production can't build without a successful QA, and QA can't build without a successful Development), I'd like to propagate the version numbers through the builds. Development Build => v 1.0.1.0 QA Build => on successful build set version to v1.0.1.0 Is there a way to set a build configuration version to a different builds version? I'm using TeamCity 4.0.2, runner is Rake,

How can I set environment variables PATH and LD_LIBRARY_PATH on Unix TeamCity build agent?

。_饼干妹妹 提交于 2019-12-03 15:12:19
I use TeamCity to build c++ on Unix (Solaris). TeamCity invokes make, and within my makefile I need to call svn . For this I need to modify PATH and LD_LIBRARY_PATH . I could set these within the makefile but the locations vary from server to server. does anyone know a way to set these for each TeamCity build agent, e.g. by editing conf/buildAgent.properties ? I could set them in ~/.login etc for the TeamCity build account, but I would prefer not to as it is a shared account. -thanks, Barney You could create a wrapper script that exports these variables before executing the TeamCity command.

Getting statistical history from TeamCity API

≯℡__Kan透↙ 提交于 2019-12-03 15:09:00
From looking at the TeamCity REST API Documentation , the request for statistical data is: http://teamcity:8111/httpAuth/app/rest/builds/<buildLocator>/statistics/ Which works, however , it only gives statistics for the current build (tests passed, code coverage, number of duplicates, etc.), I am looking to build a graph for my build radiator showing trends, therefore I want the historical data for the past month. Is there a way to get this historical statistic data from the TeamCity API? Rather than hit the DB directly, you can get at the data via the exportchart endpoint on TeamCity. This is

Running and reporting Visual Studio 2012 Code analysis in TeamCity

偶尔善良 提交于 2019-12-03 15:04:44
What is the best way to run and report Visual Studio 2012 code analysis in TeamCity? Since FxCop or Code Analysis integrates directly into MsBuild, it's probably as simple as adding /p:RunCodeAnalysis=Always or /p:RunCodeAnalysis=True to the MsBuild commandline when building the project. Since this will generate standard compiler warnings, TeamCity should pick them up automatically. Visual Studio 2010+ Code Analysis is (based on) FxCop 10.0. You can simply add a 'FxCop' build runner type build step. When the 'Report XSLT file' setting is configured the build runner will output a HTML report.

Web Application Deployment Workflow with SVN and TeamCity

断了今生、忘了曾经 提交于 2019-12-03 15:04:21
问题 I'm fairly new to Subversion. Most of my work so far has been with Visual Source Safe. I'm looking to improve my deployment process with SVN and TeamCity. This is my plan: There would be three branches: Development (/trunk) - Entire ASP.NET solution, including a Web Deployment Project. Staging (/branches/staging) - Web Deployment Project output (files needed for execution only - bin, .aspx, images, etc) Deployment (/branches/deployment) - same as Staging The CI process: Commit source changes