teamcity

web.config transformation does not work on build server

久未见 提交于 2019-12-21 20:15:30
问题 We are setting up continuous integration with team city doing builds on check-ins. This works fine, however it always builds with default web.config, it does not transform with development environment specific web config. In Visual Studio, I have custom build configuration created for development. The 'web.development.config' transforms correctly when I publish locally with 'development' configuration selected. But this does not happen on the build server. In team city, as part of msbuild

TeamCity, no clean-up for certain configuration. No pinned builds, no dependent builds

妖精的绣舞 提交于 2019-12-21 17:42:47
问题 I'm running TeamCity 5. I have one particular configuration that is preserving 3500+ past builds, with artifacts, from the last year or so. It's taking up almost 7 gigs of space so I need to clean up old builds. The configuration is set to clean up everything older than 30 days or 5 builds. None of the builds are pinned. No configurations on the server depend on the artifacts, and even if they did I have un-set "Prevent dependency artifacts clean-up". Other build configurations clean up, but

Log onto TeamCity server using REST API without passing credentials in the url

℡╲_俬逩灬. 提交于 2019-12-21 17:26:47
问题 As a follow up to a previous question I asked: How to pass username and password in TeamCity REST API, I'd like to check on something. Can someone tell me if it's possible to access the TeamCity REST API in a more secure way, rather then passing the username and password in the url? It just seems crazy to me that passing credentials in the url is the only way, since it's so easy for a sniffer to get their hands on the url and use the credentials themselves. 回答1: We faced the same problem and

TeamCity: How tell MSBuild to take into account publish profile parameters?

不想你离开。 提交于 2019-12-21 13:13:08
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>

TeamCity: How tell MSBuild to take into account publish profile parameters?

允我心安 提交于 2019-12-21 13:13:06
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>

TeamCity: How tell MSBuild to take into account publish profile parameters?

柔情痞子 提交于 2019-12-21 13:13:06
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>

How do I run a TeamCity build as a specific user

核能气质少年 提交于 2019-12-21 07:31:25
问题 I have a build configuration which deploys my code to a machine. Depending on which machine I am deploying to (e.g. dev/uat/prod), I need to run as a different user. Rather than hardcoding the username and password in the build files (not really possible as they change regularly for security reasons) I would like to be able to type them in at the point I run the build. I would envisage the "Run Custom Build" in TeamCity would have this option but I can't see anywhere to input that information

How do I run a TeamCity build as a specific user

谁说我不能喝 提交于 2019-12-21 07:30:53
问题 I have a build configuration which deploys my code to a machine. Depending on which machine I am deploying to (e.g. dev/uat/prod), I need to run as a different user. Rather than hardcoding the username and password in the build files (not really possible as they change regularly for security reasons) I would like to be able to type them in at the point I run the build. I would envisage the "Run Custom Build" in TeamCity would have this option but I can't see anywhere to input that information

How can I set environment variables PATH and LD_LIBRARY_PATH on Unix TeamCity build agent?

北城余情 提交于 2019-12-21 05:06:16
问题 I use TeamCity to build c++ on Unix (Solaris). TeamCity invokes make, and within my makefile I need to call svn . For this I need to modify PATH and LD_LIBRARY_PATH . I could set these within the makefile but the locations vary from server to server. does anyone know a way to set these for each TeamCity build agent, e.g. by editing conf/buildAgent.properties ? I could set them in ~/.login etc for the TeamCity build account, but I would prefer not to as it is a shared account. -thanks, Barney

How can I set environment variables PATH and LD_LIBRARY_PATH on Unix TeamCity build agent?

让人想犯罪 __ 提交于 2019-12-21 05:06:08
问题 I use TeamCity to build c++ on Unix (Solaris). TeamCity invokes make, and within my makefile I need to call svn . For this I need to modify PATH and LD_LIBRARY_PATH . I could set these within the makefile but the locations vary from server to server. does anyone know a way to set these for each TeamCity build agent, e.g. by editing conf/buildAgent.properties ? I could set them in ~/.login etc for the TeamCity build account, but I would prefer not to as it is a shared account. -thanks, Barney