teamcity

TeamCity Setting up MSTest 2012

╄→гoц情女王★ 提交于 2019-12-18 05:41:51
问题 On the TeamCity server we have installed VS 2012. I have created a build configuration in TeamCity that builds and deploys the solution. I have added a MSTest 2012 Configuration as well, but don't know how to tell it what project is the VS 2012 test project so that it can run those tests. Thanks 回答1: You need to specify assembly file (dll) of your tests, not the project file (csproj). Here's an example: http://shrani.si/f/p/PH/2tO4Zo5s/tmpa4cc.jpg So let's say your Testing assembly is called

TeamCity Setting up MSTest 2012

感情迁移 提交于 2019-12-18 05:41:23
问题 On the TeamCity server we have installed VS 2012. I have created a build configuration in TeamCity that builds and deploys the solution. I have added a MSTest 2012 Configuration as well, but don't know how to tell it what project is the VS 2012 test project so that it can run those tests. Thanks 回答1: You need to specify assembly file (dll) of your tests, not the project file (csproj). Here's an example: http://shrani.si/f/p/PH/2tO4Zo5s/tmpa4cc.jpg So let's say your Testing assembly is called

Where is MsDeployPublish located?

拟墨画扇 提交于 2019-12-18 04:44:04
问题 When trying to deploy my site using TeamCity and Web Deploy I get this error: error MSB4057: The target "MsDeployPublish" does not exist in the project. Is there something I have to install on a build server? It's a clean Windows Server 2012 with Web Deploy 3.5 installed. 回答1: I realise this question is quite old at this point, but: MsDeployPublish is installed with the Web Application targets as part of Visual Studio. If you have only installed Server + Web Deploy, you'll need to either copy

Build pull requests to specific branch using TeamCity and Github

对着背影说爱祢 提交于 2019-12-18 04:33:16
问题 I want TeamCity to build all pull requests to specific target branch, e.g. develop . So, I want to build following pull requests: develop...foo_branch develop...bar_branch and skip this: master...foo_branch master...bar_branch In TeamCity I can define branch specification to build all pull requests: +:refs/pull/*/head or define filter by source branch: -:refs/heads/(spikes-*) But I need filter by target branch. Is it possible? 回答1: I've written a script to work around this issue. It can be

How to configure TeamCity with private files?

删除回忆录丶 提交于 2019-12-18 02:46:14
问题 I'm setting up TeamCity for Continuous Integration and (hopefully) Continuous Deployment. Some of the build steps will involve private files, e.g. .snk files for strong naming .NET assemblies password/token files for publishing artifacts (for example to NuGet or CodePlex) Since these files contain private data I don't want to put them into the (publicly accessible) source control system. I'm setting up http://teamcity.codebetter.com for AutoFixture so I don't have physical access to the

How to set a Mercurial VCS build trigger for TeamCity that ignores label operations

感情迁移 提交于 2019-12-17 18:24:40
问题 I am trying to setup a build trigger for TeamCity using Mercurial as the VCS. Right now the trigger looks like: +:/** This trigger get fired when changesets are committed. However, I have TeamCity setup to tag each build in the VCS. The tagging process is firing the above build trigger so the build gets caught in a loop. Can anyone suggest a VCS build trigger that will filter out the tagging process? 回答1: Adding the trigger pattern: -:/.hgtags filters out the .hgtags file from the build

Select Git branch for TeamCity Build

岁酱吖の 提交于 2019-12-17 17:25:11
问题 I'm wondering how to select the branch to build against using Team City 8.1. My VCS root (Git) is set to Default: "master" and Branch specifications are +:refs/heads/develop +:refs/heads/feature/* +:refs/heads/hotfix/* +:refs/heads/master +:refs/heads/release/* I have a CI build set up that automatically builds anything that is checked in, which is working exactly how I want. What I'd like to do is create a scheduled QA build/deployment against the "develop" branch. I see that if I click the

Connecting TeamCity to TFS [duplicate]

心已入冬 提交于 2019-12-17 16:37:44
问题 This question already has answers here : Connect TeamCity to Visual Studio Online (4 answers) Closed 3 years ago . I'm struggling trying to connect my TeamCity project to my TFS project. I tried a bunch of stuff, but I always get the same error: TFS failed. ExitCode: 111, command: C:\TeamCity\webapps\ROOT\WEB-INF\plugins\tfs\bin\tfs-native.exe @@C:\TeamCity\temp\TC-TFS-25-7939_109\command.params, in file: {https://budiedimas.visualstudio.com/DefaultCollection/TesteTeamCity, /hash:S, /noProxy,

Using the percent sign in TeamCity build scripts

ε祈祈猫儿з 提交于 2019-12-17 16:12:02
问题 I am trying to set up a TeamCity build process that runs a custom command line script. The script uses a variable so it needs a percent sign (e.g. %x ). But TeamCity uses percent signs for its properties (e.g. %build.number% ), so the percent sign in the script gets removed when it runs. If the script contains this: for /d %x in ("c:\*") do @echo "%x" This is what it actually runs: for /d x in ("\*") do @echo "x" How can I write my script so it can include variables? 回答1: Try for /d %%x in (

How to add the custom nuget feed to TeamCity build?

穿精又带淫゛_ 提交于 2019-12-17 10:35:46
问题 I have created a Nuget Server using Teamcity (running on a virtual machine in internet) and created the build that publishes a package into it. I also have another project that needs to use that package. This project is built on teamcity as well. On my local Visual Studio I added the nuget feed uri, installed the package and everything works fine. But when I try to build it on teamcity it says that "Package not found". So my question is : "How to add the custom nuget feed to TeamCity build?"