teamcity

How can I have teamcity run a .bat file on each successful build?

风格不统一 提交于 2020-01-02 18:40:08
问题 I have a teamcity (4.something) install that creates .wsp file for deployment to sharepoint. Currently I have to copy the wsp out of the build artifacts directory and into a little deploy folder I have created. In the folder I run a .bat that deploys the new .wsp to our test server. What steps can I take to automate this? Either copy the .bat into the artifacts folder and update the paths etc or copy from the artifacts folder into the 'deploy' folder and run the .bat from there. I am a

Setting up TeamCity to integrate to OSX Build Agent

╄→尐↘猪︶ㄣ 提交于 2020-01-02 05:18:25
问题 Following on from my question on Setting up Teamcity to build Android, I now have the fun challenge of doing the same for an iOS project! What I would like to do is have a TeamCity job (along with all our other Teamcity jobs) to build an iOS Codebase + run unit tests. I'm aware to build iOS we need an OSX Build Agent with XCode installed. It won't work on Windows. What I'd like to know is ... has anyone successfully done this, integrated a Windows TeamCity instance with an OSX Build Agent

MvcBuildViews in MS2015 takes a long time

我的未来我决定 提交于 2020-01-02 03:41:09
问题 We are converting a solution to use the new Roslyn compiler. When I build it via teamCity in release mode, the MVCBuildViews step still uses aspnet_compiler.exe and it takes about 15 minutes to precompile views. The same process used to take 3 minutes using the previous version of aspnet_compiler.exe on .NET 4.5 This is the command that takes a while: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v temp -p E:\path\to\web\project\Directory I have tried tweaking the MSBuild

How does one version control the configuration of a TeamCity project?

喜夏-厌秋 提交于 2020-01-02 01:55:26
问题 In my CruiseControl instances, I have version controlled the ccnet.config file. When I want to update CruiseControl, I run an "update config" job which fetches the config from version control. In this manner, the very build process of a release is configuration managed. I am wondering how to achieve these goals effectively under TeamCity. 回答1: I try to keep what ever CI I am using as light as possible and put as much of the running of the build into an msbuild or nant script including running

How to run a build step conditionally in TeamCity

妖精的绣舞 提交于 2020-01-02 00:50:14
问题 This is a more generic version of this question: How to run a build step on a specific branch only? For example, I can use a PowerShell script to run MSBuild if '%teamcity.build.branch.is_default%' -eq 'true' or if '%teamcity.build.branch%' -eq 'master' but then I will miss the collapsible log that comes with the TeamCity MSBuild build runner. Isn't there any easier way to conditionally run a build step? 回答1: It is not possible to execute build step based on condition. Vote for the related

How do I integrate my Postman Integration Tests with TeamCity

偶尔善良 提交于 2020-01-01 18:08:08
问题 I'm building a suite of integration tests in Postman to test some RESTful APIs. I'd like to run these tests when building the project in TeamCity. I'm looking at perhaps using Newman command line integration, but I not finding good examples of this. Can anyone suggest an approach to make this happen? 回答1: I was able to get this working using newman and grunt. I added newman under exec, and also added a grunt task in my gruntfile. This needed to point to the local instance of the newman npm

DefineCustomFiles and CustomCollectFiles are not fired by TeamCity

流过昼夜 提交于 2020-01-01 17:28:52
问题 I'm trying to publish extra files with TeamCity. I also opened a subject here: Publish extra dll files not included in the web project but here I'm focused on the fact that DefineCustomFiles and CustomCollectFiles seem not fired. My build step looks like this: And my custom build file looks like this : <?xml version="1.0" encoding="utf-8"?> <!-- This file is used by the publish/package process of your Web project. You can customize the behavior of this process by editing this MSBuild file. In

Why does the TeamCity command line runner execute under “System”?

≡放荡痞女 提交于 2020-01-01 14:52:11
问题 I've got a bit of an auth problem with with TeamCity when running a command line build. It's related to an existing question about executing an svn checkout command but I want to ask it explicitly here: Why is it that when the TeamCity build agent service is configured to run under a specific Active Directory account and not the local system account, when I execute this command: echo "%username%" I get this build output: [20:52:04]: C:\TeamCity\buildAgent\work\b67560ceb299718c>echo "SYSTEM"

Why does the TeamCity command line runner execute under “System”?

拥有回忆 提交于 2020-01-01 14:52:10
问题 I've got a bit of an auth problem with with TeamCity when running a command line build. It's related to an existing question about executing an svn checkout command but I want to ask it explicitly here: Why is it that when the TeamCity build agent service is configured to run under a specific Active Directory account and not the local system account, when I execute this command: echo "%username%" I get this build output: [20:52:04]: C:\TeamCity\buildAgent\work\b67560ceb299718c>echo "SYSTEM"

Access to TeamCity build comments

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 11:58:11
问题 A continuation on the answer to this question: Is it possible to add a free text note to a team city build? In TeamCity custom build dialog there is a field for "Build comments". Is there a way to access this from within the build? Either as a system property or environment variable? 回答1: As far as I know, the Build Comments are not exposed or accessible from your build script, however you can create custom build parameters that are accessible. You can create system properties or environment