teamcity

TeamCity - Unmet requirements (DotNetFramework4.0_x86)

本小妞迷上赌 提交于 2019-11-30 18:20:15
I recenlty updated my TeamCity to the newest Version. (10.0 build 42002) Since then the build agent can't build any of my projects. The agent tells me the following: Unmet requirements: DotNetFramework4.0_x86 exists To solve this problem I already did what was suggested in this stackoverflow question: TeamCity Agent Missing DotNetFramework4.0_x86, but not? Sadly it doesn't work. So I looked at the log files but didn't find anything weird. Then I looked at the agent configuration paramets. I found this: DotNetFramework4.6.01055_x64_Path C:\Windows\Microsoft.NET\Framework64\v4.0.30319

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

梦想的初衷 提交于 2019-11-30 18:00:40
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\account.foo.net\v32\contact [15:28:13]\\10.10.10.49\d$\sites\account.foo.net\v32\Content [15:28:13]\\10

Branch name in build number

元气小坏坏 提交于 2019-11-30 15:31:39
问题 I'm trying to put branch name into build number, but I can't find the right parameter. I'm using build number format : %teamcity.build.branch%.{0} It works, but when it trying to build default branch 'dev', teamcity names it as <default> . How to fix it ? 回答1: I was able to solve this problem by: In my VCS Root - using git - set my Default Branch to: master In my VCS Root - using git - set my Branch Specification to: +:refs/heads/(master) +:refs/heads/(release-*) +:refs/heads/(hotfix-*)

How can I define the teamcity['build.number'] property in gradle from command line

情到浓时终转凉″ 提交于 2019-11-30 15:08:36
Is there a way to define teamcity['build.number'] property from command line? I tried -Pteamcity.build.number=1 but it didn't work. I have a build.gradle file with this task in it: distTar { baseName = project.name+'.'+ project.version+'.'+ System.getProperty("system.rnf.brach_name")+'.'+ teamcity['build.number']+'.'+ teamcity['build.vcs.number.1'] archiveName = baseName+'.tar' into(baseName) { from '.' include 'config/*' include 'run-script/*.sh' } } It works on the build server, but it drives all the developers crazy, because we don't have teamcity installed on our machines, and any gradle

TeamCity Projects and Multiple SVN Branches

爱⌒轻易说出口 提交于 2019-11-30 14:16:38
In the spirit of keeping my SVN trunk clean and ready for deployment, I've been utilizing the following source control model . For the impatient, the basic concept is that you create development branches to do actual development, and leave the trunk clean and ready for deployment, at any time (no junk in the trunk). In addition to this, I am configuring TeamCity for continuous integration. Within TeamCity, I'd like to ensure that all development branches, as well as the deployment-ready branch (the trunk, in my case) build correctly and pass all unit tests. This might be a stupid question, but

Branch name in build number

丶灬走出姿态 提交于 2019-11-30 14:13:30
I'm trying to put branch name into build number, but I can't find the right parameter. I'm using build number format : %teamcity.build.branch%.{0} It works, but when it trying to build default branch 'dev', teamcity names it as <default> . How to fix it ? I was able to solve this problem by: In my VCS Root - using git - set my Default Branch to: master In my VCS Root - using git - set my Branch Specification to: +:refs/heads/(master) +:refs/heads/(release-*) +:refs/heads/(hotfix-*) Create a Configuration Paramater: BuildNumberPrefix = SomeService.%teamcity.build.branch%.release_ Set my Build

What is the difference between snapshot dependency and finished build trigger in TeamCity?

那年仲夏 提交于 2019-11-30 13:02:57
问题 It appears to me that the function of snapshot dependency completely supersedes that of finished build trigger in TeamCity. Can anyone explain more the effect of these methods if they result in different chain behaviour? As an example, if I had a build chain of A->B Does the chain actually behave any differently between these three setups? Setup 1: Single finished build trigger of A in B. Setup 2: Single snapshot dependency of A in B. Setup 3: Both finished build trigger of A AND snapshot

Creating one NuGet package from multiple projects in one solution

家住魔仙堡 提交于 2019-11-30 12:44:50
问题 I have a solution that I'm working on that contains 4 class library projects ( A , B , C , D ). A and B could be considered the top level projects in the solution. Both A and B reference C , and D stands alone. These four projects represent a group of services that I have made that handle an automated workflow. They are all closely related, and will only be used in one location (the service manager) so I don't want to split them into different solutions. My problem is that I want to create a

Tracking build progress with TeamCity REST API

六眼飞鱼酱① 提交于 2019-11-30 12:16:13
问题 I use the TeamCity (7.0) REST API to allow developers to trigger custom builds. I add the build to the queue like this: http://teamcity/httpAuth/action.html?add2Queue=[buildTypeId]&name=[propName]&value=[propValue] My question is how I best can track the progress of the build just triggered. The REST call does not return any info about build ID assigned to the build, so even if I poll the list of builds (running/finished) I will not know if one of them is the one I triggered. There could

How to run a TeamCity build only for tags?

半腔热情 提交于 2019-11-30 12:06:53
I have several projects that produce NuGet packages that I publish to an internal server. We're using semantic versioning , and using tags in our Git repository to control the version numbers. I'm tagging like this: git tag -a v1.0.0 -m "tagged" And, during the TeamCity build, I run git describe --long , which produces an output like this: v1.0.0-0-ge9c047d The fourth number in the output is the number of commits after the tag. The 0 here means that no commits have been made since the tag. I use these first four numbers as the version number (and, incidentally, the entire string as the