teamcity

Assembly Versioning with TeamCity

强颜欢笑 提交于 2019-11-28 19:06:45
问题 I'm working on a C#/VB.Net project that uses SVN and TeamCity build server. A dozen or so assemblies are produced by the build. I want to control the assembly versions so that they all match up and also match the TeamCity build label. I've configured TeamCity to use a build label of Major.Minor.{Build}.{Revision} Where Major and Minor are constants that I set manually, {Revision} is determined by the SVN repository version at checkout and {Build} is a TeamCity auto-incrementing build counter.

Configure TeamCity to build from SVN trunk, branches and/or tags

六月ゝ 毕业季﹏ 提交于 2019-11-28 18:40:05
问题 How can I configure TeamCity to build from SVN trunk and also from different branches and/or tags ? Our idea is to have multiple builds from the same project, this way we can have the current version that is in production (with the ability to make deploys and fixes over that "release tag") and at the same time have the trunk and branches with the actual development that is taking place daily. We have our policies, owner and all that for our SVN directories, the problem that we have is how to

How can I change the user identity that runs a build agent in TeamCity?

不想你离开。 提交于 2019-11-28 18:33:41
I am trying to get a build process set up in TeamCity 5, and I am encountering an access denied error when trying to copy some files. I see that my build agent is running as "SYSTEM" now, and I think that's part of the problem. I'd like to change that user identity. The trouble is that I can't figure out how to change those settings on the build agent. How can I change the build user identity? Otávio Décio Open the services list (Start -> Run -> services.msc) Find the "Team City Build Agent" service Open the properties dialog for the service (right click, Properties) Choose the "Log On" tab

*.dll.licenses file in obj directory not created with msbuild in TeamCity

故事扮演 提交于 2019-11-28 18:27:44
问题 I am working on upgrading our TeamCity projects from VS2012 to VS2015 and I am running into an issue compiling our MVC application. Old MSBuild (v4.0.30319.34209) generates a file in the obj directory called MyApplication.Web.Mvc.dll.licenses which apparently is required for building, but we have no idea what the file is actually used for. New MSBuild (v14.0.23107.0) does not create this MyApplication.Web.Mvc.dll.licenses file, so the build fails with the following error: CSC error CS1566:

How to use StyleCop with TeamCity

空扰寡人 提交于 2019-11-28 17:36:44
问题 Has anyone had any success with running StyleCop from TeamCity? I know StyleCop supports a command line mode, however i am not sure how this will integrate into the report output by TeamCity. I've checked out this plugin found here: https://bitbucket.org/metaman/teamcitydotnetcontrib/src/753712db5df7/stylecop/ However could not get it running. I am using TeamCity 6.5.1 (latest). 回答1: I don't know how familiar you are with MSBuild, but you should be able to add a new Build Step in TC 6 and

MSBuild - How to build a .NET solution file (in an XML task script) from pre-written command line commands

妖精的绣舞 提交于 2019-11-28 17:15:23
问题 I have been studying MSBuild as I have the need to automate my development shop's builds. I was able to easily write a .BAT file that invokes the VS command prompt and passes my MSBuild commands to it. This works rather well and is kinda nifty. Here is the contents of my .BAT build file: call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat" cd C:\Sandbox\Solution msbuild MyTopSecretApplication.sln /p:OutputPath=c:\TESTMSBUILDOUTPUT /p:Configuration=Release

Why would a post-build step (xcopy) occasionally exit with code 2 in a TeamCity build?

老子叫甜甜 提交于 2019-11-28 16:55:58
A few projects in my client's solution have a post-build event: xcopy the build output to a specific folder. This works fine when building locally. However, in TeamCity, I occasionally get xcopy [...] exited with code 2 If I use regular copy , it exits with code 1. I expect this has something to do with file locks, although the specific files being copied are not the same, so perhaps just locking on the shared destination directory. I use /y to not prompt on overwriting files. Why this fails in TeamCity but not locally? Metro Smurf Even if you provide the /Y switch with xcopy, you'll still get

TeamCity forgotten admin password - where to look?

你说的曾经没有我的故事 提交于 2019-11-28 16:28:00
问题 I need to recover/reset the admin password for JetBrain's TeamCity . I have full RDP access to the server so no problems there. It's just been 2 months since we used it so now I have forgotten my login - my usual ones don't work. It is setup without a database at the moment, so was hoping the usernames would just be in a file somewhere, but no luck finding it so far. 回答1: In case none of those works, see http://sebastienlachance.com/post/Resetting-TeamCity-Password.aspx. Open a command prompt

TeamCity for Python/Django continuous integration

会有一股神秘感。 提交于 2019-11-28 16:26:18
I've set up TeamCity on a Linux (Ubuntu) box and would like to use it for some of Python/Django projects. The problem is that I don't really see what to do next - I tried searching for a Python specific build agent for TeamCity but without much of the success. How can I manage that? Art Ok, so there's how to get it working with proper TeamCity integration: Presuming you have TeamCity installed with at least 1 build agent available 1) Configure your build agent to execute manage.py test 2) Download and install this plugin for TC http://pypi.python.org/pypi/teamcity-messages 3) You'll have to

NuGet Package Restore cannot find package, has no Source

社会主义新天地 提交于 2019-11-28 08:06:44
I have a package on my TeamCity NuGet feed, built by TeamCity, but a dependent TC project cannot see it during package restore. [14:05:02][Exec] E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.targets(88, 9): Unable to find version '1.0.17.0' of package 'MarkLogicManager40'. [14:05:02][Exec] E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.targets(88, 9): error MSB3073: The command ""E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.exe" install "E:\TeamCity-BuildAgent\work\62023563850993a7\ProductMvc\packages.config" -source "" -RequireConsent -solutionDir