teamcity

How call Web Essentials task in MSBuild ?

 ̄綄美尐妖づ 提交于 2019-11-29 15:37:09
Web essentials works great when build in VS, but seems no way to build/bundle (Scss/js,Html,Sprit) when call MSBuild (like team city). I googled lot stuffs, but only find - https://www.nuget.org/packages/Pta.Build.WebEssentialsBundleTask/ but it only support bundle, is there any other way to do that ? finally, I found http://madskristensen.net/ , Mads Kristensen split Bundler & Minifier and Web Compiler from Web Essentials 2015, and it supported integrate with MSBuild process !!!! https://visualstudiogallery.msdn.microsoft.com/9ec27da7-e24b-4d56-8064-fd7e88ac1c40 https://visualstudiogallery

Programmatically pin a build in Teamcity

余生长醉 提交于 2019-11-29 12:48:28
问题 Is it possible to pin a build in Teamcity programmatically/automatically? I want to pin a build if a Deploy-build is successfull. 回答1: Just found out that its possible through the REST API I can f.ex send a PUT command like this http://teamcityserver:81/httpAuth/app/rest/builds/id:688/pin/ and then the build with id 688 ( teamcity.build.id ) will be pinned. 回答2: I would like to challenge the accepted answer with an up-to-date answer, which was tested with TeamCity 9 EAP 4 (build 31717) and 8

Process NUnit result.xml and show it in Team City Web GUI

拈花ヽ惹草 提交于 2019-11-29 10:42:12
I remember doing this in an older version of Team City in which the NUnit Runner failed, so I tried running NUnit using the Command Line Runner instead. I think there was an option in the Command Line Runner settings which let you specify the kind of output file: NUnit result.xml was one of them. Doing this, you could see the test result breakdown in the Web GUI, just like when the NUnit Runner worked. But I don't see this in the latest Team City (6.5.5). Can it still be done? PS: Before anyone asks, I can't use Team City's NUnit Runner because NUnit has a bug which will be fixed in the soon

TeamCity: labeling VCS (Subversion) with an artifact's file version

僤鯓⒐⒋嵵緔 提交于 2019-11-29 10:24:52
问题 I want to create create a label (tag) in the SVN with a file's version. I'm already renaming the artifact by getting the file version of the main executable produced by the build. Such as: MyInstaller-1.2.3.1.exe . Now I want to create a tag in the SVN called /tags/1.2.3.1 . I couldn't find a way to set such a thing in the labeling pattern. Currently my labeling is just "%system.build.number%" Any idea about how to do this? I'm using TeamCity Professional Version 4.5.3 (build 9035) 回答1: As

How to pass username and password in TeamCity REST API

╄→гoц情女王★ 提交于 2019-11-29 09:56:48
I've just started to experiment with the TeamCity REST API. I've been some of the documentation about what types of commands I can call, etc, but one thing which is not mentioned is how to pass a username and password to the API. I've not been able to find examples of this; so can someone help me out please? like this: http://user:pass@server:port/app/rest/..... etc I found that on the EAP Docs Site Thanks for Sangha's answer. Just one more supplement. Please remember to encode user id and password using Base64. 来源: https://stackoverflow.com/questions/11017686/how-to-pass-username-and-password

TeamCity Setting up MSTest 2012

不羁岁月 提交于 2019-11-29 09:20:37
On the TeamCity server we have installed VS 2012. I have created a build configuration in TeamCity that builds and deploys the solution. I have added a MSTest 2012 Configuration as well, but don't know how to tell it what project is the VS 2012 test project so that it can run those tests. Thanks Dejan Dakić You need to specify assembly file (dll) of your tests, not the project file (csproj). Here's an example: http://shrani.si/f/p/PH/2tO4Zo5s/tmpa4cc.jpg So let's say your Testing assembly is called Company.Tests.dll and it is located in Company.Tests/bin/Debug/Company.Tests.dll Basically, in

[Tool] Continuous Integration & Build Server – TeamCity (一) 安装

非 Y 不嫁゛ 提交于 2019-11-29 06:13:41
[Tool] Continuous Integration & Build Server – TeamCity (一) 安装 前言 在敏捷软件开发之中,使用Continous Intergration Server(简称CI Server)也是一个很重要的辅助, 与以往工作流程的不同之处在于,它可以在使用者将Code Commit至Server之后, 即时的进行一连串的Build、Unit Test、Intergration Test或是Analysis等动作, 确保你所Commit的Code是能够Build以及通过各种测试的, 在这边就不详细的介绍,大家可以参考网络上许多详细的介绍, 今天所要介绍的是一款由JetBrains公司的产品TeamCity, 他在操作和使用上都还满简单的,也提供了网页界面来让大家进行操作, 所以一旦安装完成之后,只要透过浏览器就可以设定CI Server, 以及观看每一个Build的结果如何,还可以透过一些Plug-in或Email来即时获得建置的资讯喔! 接下来会从安装开始,陆陆续续地以几篇文章的方式来介绍, 和大家分享一些在使用上的心得 实际演练 我们可以在TeamCity的官网网站下载主程序, 免费的版本会有些功能及设定上的限制,这几篇的介绍也是以免费版本为主, TeamCity的安装十分简单,就让我们一步一步来看看怎么安装吧! 欢迎画面

Where is MsDeployPublish located?

自闭症网瘾萝莉.ら 提交于 2019-11-29 06:10:04
When trying to deploy my site using TeamCity and Web Deploy I get this error: error MSB4057: The target "MsDeployPublish" does not exist in the project. Is there something I have to install on a build server? It's a clean Windows Server 2012 with Web Deploy 3.5 installed. I realise this question is quite old at this point, but: MsDeployPublish is installed with the Web Application targets as part of Visual Studio. If you have only installed Server + Web Deploy, you'll need to either copy them from your developer installation or install Visual Studio. The targets can be copied from

Build pull requests to specific branch using TeamCity and Github

自古美人都是妖i 提交于 2019-11-29 05:39:04
I want TeamCity to build all pull requests to specific target branch, e.g. develop . So, I want to build following pull requests: develop...foo_branch develop...bar_branch and skip this: master...foo_branch master...bar_branch In TeamCity I can define branch specification to build all pull requests: +:refs/pull/*/head or define filter by source branch: -:refs/heads/(spikes-*) But I need filter by target branch. Is it possible? I've written a script to work around this issue. It can be run as one of the first build steps in TC's build configuration. The script will ask for pull request details

Why did my TeamCity build stop working?

谁说胖子不能爱 提交于 2019-11-29 05:01:41
问题 I have a TeamCity build configuration that has been working fine until recently. Suddenly, there is a build stuck in the queue that says it is not compatible with any agents. The reason given is: Implicit requirements: teamcity.build.branch defined in Parameter: BuildFormatSpecification My BuildFormatSpecification parameter is defined thus: %MajorVersion%.%MinorVersion%.%PatchVersion%-%teamcity.build.branch% That in turn is used in the Build Number Format field along with a build counter,