teamcity

TeamCity command line build runner: How to make the build fail?

谁说我不能喝 提交于 2019-12-03 09:29:45
We're using TeamCity's command line build runner to call a bat-file. The bat-file builds our solution by calling the Visual Studio 2008's "devenv.exe" and then it executes the unit tests and creates the correct folder structure. What we would like to do is to stop executing the bat-file if the call to devenv fails and make the TeamCity to realize that the build failed. We can catch the failed devenv call by checking the ErrorLevel (which is 1 if the build failed) and we can exit our bat-file at that point. But how can we tell to the TeamCity that the build failed ? This is what we've tried:

Nuget Restore via build server “unable to find version”

强颜欢笑 提交于 2019-12-03 09:22:46
I have a VS solution and as part of a TeamCity Build, we restore packages from both a private NuGet feed (myget) and the public feed (nuget.org). Most packages restore fine, but it hangs on the ones below for WebApi and Mono.Security. This is all working locally in Visual Studio. [restore] NuGet command: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe restore C:\TeamCity\buildAgent\work\953bd084b49f7d88\DataFinch.Web.sln -Source https://www.myget.org/F/datafinch/auth/<hidden>/api/v2

How to diagnose “TestFixtureSetUp Failed”

假如想象 提交于 2019-12-03 09:21:17
We use TeamCity as our CI server, and I've just started seeing "TestFixtureSetUp Failed" in the test failure window. Any idea how I go about debugging this problem? The tests run fine on my workstation (R# test runner in VS2008). It is a bit of a flaw in the implementation of TestFixtureSetUp (and TestFixtureTearDown) that any exceptions are not well reported. I wrote the first implementation of them and I never got it to work the way it was supposed to. At the time the concepts in the NUnit code were tightly coupled to the idea that actions were directly related to a single test. So the

How can I generate a custom build number in TeamCity and then patch it to assembly info?

会有一股神秘感。 提交于 2019-12-03 09:12:27
I have done some searching on this topic and am able to find individual solutions to generate custom build numbers as well as patch assembly info, however I am unable to accomplish both. When using a custom POWERSHELL script that I found in a search, I am able to set the build number to what I create with the script, however this build number does not patch. The only success I have in patching is when using set numbers plus a counter. But the number that the POWERSHELL script creates does not persist to an extent that the Assembly patcher can work with. Am I doing it wrong? I finally solved it

Why does TeamCity miss a reference and fails compilation?

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution to learn it. My solution has 2 projects: ConsoleApplication1 and ClassLibrary1. ConsoleApplication1 has a reference to ClassLibrary1. The solution compiles with no problem in VS directly. However, when I try to compile the same solution in TeamCity, it fails with error: Program.cs(13, 25): error CS0246: The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an assembly reference?) As far as I understand,

MSBuild step in TeamCity considers app.config instead of web.config for ASP.NET WEB API project resulting in warning MSB3247

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have ASP.NET WEB API project with Web.conig file. When it builds in VS2015, no errors and no warnings are reported. However when I build this project on TeamCity using MSBuild build step, I get warning MSB3247: [ResolveAssemblyReferences] ResolveAssemblyReference [14:30:01] : [ResolveAssemblyReference] No way to resolve conflict between "protobuf-net, Version=2.0.0.602, Culture=neutral, PublicKeyToken=257b51d87d2e4d67" and "protobuf-net, Version=2.0.0.480, Culture=neutral, PublicKeyToken=257b51d87d2e4d67". Choosing "protobuf-net, Version=2

TeamCity Username / password

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I installed teamcity longtime ago, on my home computer. I am trying to re-use it again now, but I forgot the admin username and password Is there a default admin user name? and how can I get the password? Thank 回答1: Ok, so you've forgot username and password in your teamcity instance. How to reset password : described here . How to get username : go to the teamcity data directory open config\database.properties file there is connectionUrl property which points out to database which stores some teamcity settings take a look at users table

How can i fix this warning: CoreSimulator is attempting to unload a stale CoreSimulatorService job

流过昼夜 提交于 2019-12-03 08:35:33
问题 I have a warning in my build log in teamcity. I've updated Xcode on my CI-Server from 7.3.1 to 8. The step run successfully but I have this: [Step 3/3] Starting: /Users/teamcity/local/teamcity-build-agent/temp/agentTmp/custom_scriptxxxxxxx [Step 3/3] in directory: /Users/teamcity/local/teamcity-build-agent/work/yyyy [Step 3/3] 2016-10-11 09:04:41.706 xcodebuild[18180:5010256] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or

Octopus deployment from Teamcity not using the latest packages

冷暖自知 提交于 2019-12-03 08:32:06
问题 I have set up a build step on TeamCity,as described here, to do automatic release deployments to our test server. But it is not using the latest nuget packages that was build in TeamCity. Use Case : Teamcity will create nuget package with version 1.0.0.9, all the dlls that is in the package is the correct version, and the Release in Octopus, that was deployed has got the same version number , but the packages that octopus uses is of an earlier package eg 1.0.0.5. I have specified the --force

Interface Android robotium testing with Teamcity

*爱你&永不变心* 提交于 2019-12-03 07:43:53
问题 As this was not answered (Maybe did I not find it) previously, I investigated on the following question : How to perform automated functional tests on Android devices with robotium, and report them to continuous integration server like TeamCity? 回答1: As I did not find any answer on that specific question, I investigated. Here is the output of my investigation and a quick How-To in order to help people perform automated functional tests on Android applications using robotium, and then report