teamcity

Quality Gate Failure in SonarQube does not fail the build in Teamcity

时光毁灭记忆、已成空白 提交于 2020-01-01 11:58:10
问题 I set up a Build project in TeamCity and integrated Sonarqube with it. The project is getting build and even publish the report successfully in SonarQube console. But when the quality gate fails, it's not breaking the build. I searched and read about the build breaker, but its already supported with Sonarqube plugin of TeamCity as this document https://confluence.jetbrains.com/display/TW/SonarQube+Integration Am I missing something to configure/or any gotcha? I tried to search a lot but didn

How do I download a protected file using PowerShell?

拥有回忆 提交于 2020-01-01 11:42:10
问题 I am trying to download a file using PowerShell 3.0 from my TeamCity build server. I have configured TeamCity to use NTLM authentication but I cannot download the file directly and get redirected to login. I am trying to use the following PowerShell code to download the file. $artifacts = "http://teamcity/repository/download/bt1/.lastSuccessful/%7Bbuild.number%7D.zip" Invoke-WebRequest -Uri $artifacts -UseDefaultCredentials My response from the request is a redirection to the login page. 回答1:

How to permanently change a system property in TeamCity 6 from a build step

耗尽温柔 提交于 2020-01-01 10:12:35
问题 I have found a way to change a property in TeamCity: ##teamcity[setParameter name='ddd' value='fff'] But unfortunately this change only occurs for the current build. I want this change to be PERMANENT, but TeamCity only changes this for the current running build. How do I make a permanent change to a system property in TeamCity? 回答1: The only solution using TeamCity 6.5 was to edit the Xml configuration file programmatically using a python script. A build step calls the python script to

Web Deployment Project & TeamCity

大憨熊 提交于 2020-01-01 09:40:53
问题 I am trying to build a web deployment project 2010 project for a solution. I have installed the Windows SDK and Web Deployment Project 2010 RTW on the build server, as well as copied over the missing .target files for MSBuild. When attempting to build the project it spits out the following error C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets(1589, 9): error MSB6004: The specified task executable location "C:\Program Files\MSBuild\Microsoft\WebDeployment

How should I tell TeamCity's NuGet Installer build step to use both NuGet.org and the TeamCity provided packages source?

风流意气都作罢 提交于 2020-01-01 07:39:09
问题 I'm having trouble with my NuGet Installer build step. We're using both official NuGet.org packages and our own packages hosted on the TeamCity NuGet server. If I leave Packages Sources blank, then packages from nuget.org are found, but as soon as I specify %teamcity.nuget.feed.server% as the package source, then packages from nuget.org are not found. I tried setting Packages Sources to include both, but it still isn't working for official nuget.org packages. https://nuget.org/api/v2/

certificate verify failed for mercurial VCS in teamcity

五迷三道 提交于 2020-01-01 06:58:09
问题 I am trying to configure mercurial with teamcity but getting the following error: stderr: abort: error: _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed tried solutions mentioned in following link of signed certificates but nothing seems to be working. https://www.mercurial-scm.org/wiki/CACertificates#Manually_bypassing_security_checks_on_self-signed_certificates Any Idea what I am missing here. Please guide 回答1: Fix the problem by putting the

Running UI automation tests on build server

ぐ巨炮叔叔 提交于 2020-01-01 04:54:10
问题 We use UI Automation and Nunit to create tests UI tests for WPF application. We've created tests that work fine when you run them from a local machine. Those tests never run successfully on our build server (using TeamCity). Build always hang after opening application window. But if I am logged in (remote desktop), on our build server all UI Automation tests also run successfully. So I am guessing that it probably has something to do with running active windows session. Any ideas how to

TeamCity, how to get names of the files edited

南楼画角 提交于 2020-01-01 04:36:30
问题 I am using TeamCity and I am new to it. I have added a Build Configuration to the TeamCity and I created one VCS root to attach to it. However, my project have a special requirement to detect a particular file that was changed in the VCS root location and use that file in build step. I am sure this could be done in TeamCity, I am not able to figure out how. Any help? Thanks, 回答1: To get the names of the files changed this is what I did. Thanks to Sam Jones. I used System.TeamCity.build

How to I configure TeamCity build with Mocha?

北城余情 提交于 2020-01-01 02:51:09
问题 I have a project that I am setting up through teamcity for CI. The project itself is a nodejs application and it includes test written in mocha, which we cover through jscoverage. In the build configuration I'm setting up I have 3 build steps which occur on checkin. call jscoverage.exe against the folders in my project that I'm covering. call mocha to run the test against the jscovered files from step 1 and output to the html-cov reporter move the generated coverage.html report into a public

How do I gather TeamCity code coverage reports from multiple projects into one report?

扶醉桌前 提交于 2019-12-31 21:34:28
问题 We use the build in coverage application in TeamCity 6 (about to upgrade to 7.1) If we wish to see the code coverage (or other metrics) of a particular build it is fine as we can navigate to that build, but it would be great if we could pluck out a few interesting metrics from all/some of the current projects/build configurations and display them all together. For convenience I would expect the new display to be accessible from within TeamCity itself, however if there are solutions that