teamcity

Teamcity, set configuration parameter for next build

﹥>﹥吖頭↗ 提交于 2019-12-07 10:29:16
问题 I'm trying to set/change a build parameter from build 1 to be used in build 2. In build 1 I have a build step that sets a configuration parameter like this: echo "##teamcity[setParameter name='ENVIRONMENT' value='%Target environment%']" And in a build step on build 2, I want to use this environment variable in a rake task by specifying %ENVIRONMENT% The problem I have is that the configuration parameter is not visible in build 2. I have surely missed something essential. I have also tried

How do I get system property from teamcity in msbuild file?

穿精又带淫゛_ 提交于 2019-12-07 09:44:23
问题 How do I get system property from teamcity in msbuild file? teamcity version:6.0 回答1: Try removing system_ part from property's name. The documentation says Don't forget to leave the "system." part out of the system properties. When using MSBuild, replace "." with "_" when you reference property names. (However this is version 6.5 documentation, maybe it woun't work in your case but you can try it anyway) 回答2: Just use $(system_property_name) in your MSBuild file. 回答3: <PropertyGroup>

“Algorithm negotiation fail” with SSH authentication on TeamCity

谁说胖子不能爱 提交于 2019-12-07 09:18:08
问题 We have a TeamCity 7.1.5 and our Git Repositories are hosted on a TFS 2017. We wanted to switch to SSH authentication with a Public/Private key. So I have created an openSSH keypair and added the public key on my TFS user. On my local machine this works as expected. But when I want to configure my TeamCity VCS Root to use SSH as well, I always get the following exception: Failed for the root 'VCS ROOT' #830: List remote refs failed: com.jcraft.jsch.JSchException: Algorithm negotiation fail

Show in GitLab TeamCity builds status

南笙酒味 提交于 2019-12-07 08:05:56
问题 I've managed to configure TeamCity to automatically pull the new checked-in changes from GitLab and build it. Next step I would like that the build status icon in GitLab reflects the build status from TeamCity. At the moment each build TeamCity builds, GitLab continues to show "build:skipped". As I understand this is because it's not run with Gitlab CI and that my repo misses gitlab-ci.yml. I did setup the TeamCity CI service for the project but it didn't help with anything. Maybe I'm

TeamCity NuGet package build for different .NET Frameworks

孤者浪人 提交于 2019-12-07 07:30:46
问题 I've been doing updates to .NET Framework targeted versions of projects updating to latest .NET (4.6.2). Some of these projects are NuGet packages, built in TeamCity 9.0.2. I've use the steps in this guide to create multiple build configurations for different .NET Framework version as some of the projects I haven't updated to 4.6.2 reference the NuGet packages. So I am trying to get TeamCity to use these build configurations to output the various Net40, Net45, Net46 and Net462 versions so

TeamCity + MSTest - Run only failed tests?

旧城冷巷雨未停 提交于 2019-12-07 07:27:33
问题 Is there a way to run only failed tests from a previous test run in TeamCity? Even better, is there a way to run only selected tests in some way? Like if we want to run only certain test classes. Is there another mechanism we can accomplish this with? Maybe passing some kind of configuration file to MSTest on subsequent test run? The reason I ask this, is we have employees that do not use Visual Studio, but they still need to run certain tests to see what is failing. 回答1: You can group those

Override dependencies properties by parameters value in TeamCity 9

夙愿已清 提交于 2019-12-07 05:50:47
问题 In TeamCity 9 I have two build configurations: A, B which depends on A (snapshot dependency). Sometimes A starts alone, sometimes in chain with B. I want to change build.number of A to (for example) 0.<build.counter of B> when A triggered by B. According to docs: Since TeamCity 9.0, there is a possibility to override the dependencies parameters by redefining them in the dependent build. For example, build configuration A depends on B and B depends on C; A has the ability to change parameters

Continuous Integration with Teamcity and Clearcase

时光毁灭记忆、已成空白 提交于 2019-12-07 05:13:31
问题 Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a productive continuous integration build environment on a decent size project? 回答1: Yes we have, but with a custom ClearCase plugin for TeamCity , in order to:: use a dynamic view set with a "time" directive , and to avoid hundreds of " descr -l " for each changed files (which would be Sparta, err, no, madness, would be madness since it would represents hundreds of transaction to the

In MsBuild, how do I run something PowerShell and have all errors reported [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 04:53:28
This question already has answers here : Closed 7 years ago . Possible Duplicate: Any good PowerShell MSBuild tasks? Powershell doesn't seem to have an easy way to trigger it with an arbitrary command and then bubble up parse and execution errors in a way that correctly interoperates with callers that are not PowerShell - e.g., cmd.exe , TeamCity etc. My question is simple. What's the best way for me with OOTB MSBuild v4 and PowerShell v3 (open to suggestions-wouldnt rule out a suitably production ready MSBuild Task, but it would need to be a bit stronger than suggesting "it's easy - taking

Comparison between CruiseControl, TeamCity and Team Foundation Server

荒凉一梦 提交于 2019-12-07 04:01:07
问题 Today we are using TFS 2008 for source control, and I imagine we will go for TFS 2010 as quick it goes RTM. We are going to use some continues integration tool but which one? I have been looking at both TeamCity and CruiseControl.NET both seems quite good (TeamCity were a little more easy to configure). I have seen some really promising screencast about TFS 2010 automation tools and it looks really good. But I have only scratched the surface of the tools. Which one should I use? 回答1: Given