teamcity

How do I pass this common property to MSBuild using TeamCity?

坚强是说给别人听的谎言 提交于 2019-12-03 23:37:47
I am using the TeamCity Visual Studio runner. I want to add a setting that is not accessible from Visual Studio. /Property:FileAlignment=4096 I typed that directly into the build step "Command line parameters." The build log shows the error: MSBuild command line parameters contains "/property:" or "/p:" parameters. Please use Build Parameters instead. I don't understand how to provide this to MSBuild from TeamCity and get rid of this warning! 1. Which kind of parameter should I use? There are 3 kinds: Configuration parameters System properties Environment variables. I don't want an environment

How to enable remote debugging in Azure Cloud Service package built by MSBuild

本小妞迷上赌 提交于 2019-12-03 21:11:31
I'm building ccproj project directly by MSBuild (within TeamCity): msbuild Project.Azure.ccproj /p:Configuration=Debug /t:Publish How to enable remote debugger? Like in the UI: This is explained in the Azure documentation . Basically you should get the remote tools for visual studio 2013 and then add the following properties to the msbuild command: msbuild /TARGET:PUBLISH /PROPERTY:Configuration=Debug;EnableRemoteDebugger=true;VSX64RemoteDebuggerPath="<path-to-remote-tools>";RemoteDebuggerConnectorCertificateThumbprint="<thumbprint-of-ceritificate-that-is-added-to-the-cloud-service>"

Can I get statistics for test cases steps inside robot framework?

醉酒当歌 提交于 2019-12-03 20:58:17
In order to optimize time of execution, i create some test cases dependent from each other i want to get metrics and statistics not only for each testcase and testsuite. But also i want to generate statistics and metrics for each step. Is that possible ? PS : I'm using team city for continuous integration. Best regards, Emna A. Using robot framework api we can get TEST and KEYWORD Metrics Reference: Link API: class robot.result.model.Keyword class robot.result.model.Test Keyword Metrics Code: # Keyword Metrics Code: (save following snippet as python file and execute) from robot.api import

Visual Studio 2010 - WDP or Publish for automated deployment?

放肆的年华 提交于 2019-12-03 20:53:32
I'm about to upgrade to Visual Studio 2010, and I'm learning that there are now a few options for deploying web application projects. I've been using Web Deployment Projects in 2008, and my initial thought was to do the same in 2010. Is there any advantage to using Publish or the Web Deployment Tool over Web Deployment Projects? I need to automate the process so that the build and the deployment can be run from TeamCity. I'd prefer a method that would allow me to use the Visual Studio (sln) Runner but a custom MSBuild script would be OK too. See Web Application Deployment Workflow with SVN and

Can I format powershell output into collapsible Tree View in TeamCity logs?

此生再无相见时 提交于 2019-12-03 20:43:08
问题 Is it possible to format powershell output so that it renders as a collapsible section in the TeamCity build log, Tree view? So for example, my build step uses a powershell runner, and issues a write-host " ################# deployment manifest ############################" ls -r -i *.* | %{ $_.FullName } which outputs this: [15:28:13] ################# deployment manifest ############################ [15:28:13]\\10.10.10.49\d$\sites\account.foo.net\v32\Bin [15:28:13]\\10.10.10.49\d$\sites

certificate verify failed for mercurial VCS in teamcity

我的未来我决定 提交于 2019-12-03 20:10:19
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 Fix the problem by putting the mercurial.ini config file at C:\Windows\System32\config\systemprofile path. 来源: https://stackoverflow.com

Teamcity build log

被刻印的时光 ゝ 提交于 2019-12-03 19:05:32
问题 I use TeamCity for continious integration. Solution checkouts on deploy machine and builds. Deploy machine running under Windows Server 2008 R2 - Russian. There are russian language PowerShell installed etc. In TeamCity build log, all russian symbols are in wrong encoding. How to change encoding in build log? 回答1: change encoding for log4j configuration for build log in conf/teamcity-agent-log4j.xml <appender name="ROLL.BUILD" class="jetbrains.buildServer.util.TCRollingFileAppender"> <param

Target not running when using BeforeTargets=“Build” on Build Server

别等时光非礼了梦想. 提交于 2019-12-03 17:59:53
问题 I have a custom .targets file which I import into my C# MVC web application's project file. I've added custom targets to this like so: <Target Name="CopyFiles" BeforeTargets="Build"></Target> This works fine when building under Visual Studio, but when I use TeamCity to build it, the target never gets run, and I can't work out why. If I change my target to use BeforeTargets="Compile" then it runs. Alternatively, if I add an additional target with the name Build to the .targets file <Target

How can I make TeamCity take advantage of MSBuild's incremental build support?

北城以北 提交于 2019-12-03 17:07:10
问题 I'm setting up TeamCity (migrating from CruiseControl.NET) and I'm struggling to get it to perform incremental builds through MSBuild. I've got a small .proj file which contains a basic build script to invoke a build of my solution with some parameters fed in from TeamCity. When I invoke the script manually, MSBuild's Incremental Build features kick in and skip the build entirely on subsequent runs. When calling this script via Team City, the build log shows the output of a clean compile

Building .NET Core 1.0 RC2 app on the build server

南笙酒味 提交于 2019-12-03 17:00:59
问题 I've updated my app from DNX, ASP.NET 5 RC1 to ASP.NET Core 1.0 RC2. Locally it builds and runs fine. On the build server, I don't have Visual Studio installed, and the build fails with: error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. I did install the: .NET Core SDK for Windows. Trying to install the VS 2015