teamcity

Is there a way to access TeamCity system properties in a Powershell script?

不打扰是莪最后的温柔 提交于 2019-12-03 14:58:58
问题 I'm trying to set up a new build configuration in TeamCity using the Powershell runner. However, I can't seem to find a way to access the TeamCity System Properties in the build script. I've seen hints that it is possible, but cannot find documentation on how to do it. I have tried accessing the system properties using Powershell variable syntax, $variable. I have also printed out all variables in memory and see no teamcity variables to use. Is this possible with the Powershell runner, and if

How to get TeamCity Build trigger filter to build feature branches but not default branch

旧巷老猫 提交于 2019-12-03 13:36:52
I've created a Team City build to build the feature branches: Default Branch: refs/heads/development Branch Specification: refs/heads/feature/* I have a vcs trigger so it builds for every git push. But I don't want it to build when someone pushes to the development branch. I have tried playing with the branch filter in the trigger, but either features and development build on push, or none of them do. I'm using TC 9.1.1 Alina Mishina Try the following settings: Default Branch: refs/heads/development Branch Specification: +:refs/heads/feature/* VCS trigger branch filter: +:* -:<default> We are

Running UI automation tests on build server

不羁的心 提交于 2019-12-03 13:14:45
We use UI Automation and Nunit to create tests UI tests for WPF application. We've created tests that work fine when you run them from a local machine. Those tests never run successfully on our build server (using TeamCity). Build always hang after opening application window. But if I am logged in (remote desktop), on our build server all UI Automation tests also run successfully. So I am guessing that it probably has something to do with running active windows session. Any ideas how to convince our build server to create active windows session or any other solutions for making those tests run

Running selenium automation tests on remote teamcity build agent

点点圈 提交于 2019-12-03 13:10:26
问题 Recently we started using Teamcity for build management and to run selenium junit tests using ANT scripts. The tests are running successfully and shown as passed on teamcity console. When the tests are running if I login to the build agent machine, I was expecting to be able to see the browser window open and fields getting populated and submitted. I don't see the Firefox browser window open, wondering how my tests are passing. When I run the same test scripts in Eclipse, the Firefox browser

Failed build trigger in team city TeamCity

前提是你 提交于 2019-12-03 12:44:14
Is it possible to Trigger an exe to run on a failed build? Can you do this within Team City? If you specifically want the failed builds, you can set up the dependent build as Eric said, and have that secondary buildscript use the REST API to pull up a list of the failed builds for the actual project. If the latest build is in that failed builds list, then tell the build script to run the executable. If not, then you're all done! http://confluence.jetbrains.net/display/TW/REST+API+Plugin I don't think it's possible to trigger an executable to run only on failed TeamCity builds. TeamCity usually

TeamCity, how to get names of the files edited

北城余情 提交于 2019-12-03 12:05:51
I am using TeamCity and I am new to it. I have added a Build Configuration to the TeamCity and I created one VCS root to attach to it. However, my project have a special requirement to detect a particular file that was changed in the VCS root location and use that file in build step. I am sure this could be done in TeamCity, I am not able to figure out how. Any help? Thanks, To get the names of the files changed this is what I did. Thanks to Sam Jones. I used System.TeamCity.build.changedFiles.file variable as follows. Add a command line build step Select Run as Custom Script Add the script

Continuous Integration - with what to start: CruiseControl.NET vs TeamCity vs Visual Studio Team System [closed]

怎甘沉沦 提交于 2019-12-03 11:53:38
I'm new to Continuous Integration. I want an advice with what tool should I start deal with. I see that this is the biggest tools right now: CruiseControl.NET, TeamCity and Visual Studio Team System. I'm using this tools: Visual Studio 2010, Mercurial, NAnt, NUnit. Both TeamCity and CruiseControl.NET will work fine for this set of tools. Also you can consider alternatives : Hudson (Free, UI-based setup) Visual Studio Team System (expensive (about 6000$), UI-based setup) CruiseControl.NET (Free, Xml-based setup) TeamCity (Professional Edition of TeamCity is free, UI-based setup) The difference

Assembly Versioning and Dll Versioning in Team City

孤街醉人 提交于 2019-12-03 11:33:36
问题 I want to have these Versions in a format like this.. {Major}.{Minor}.{Build}.{patch} how to set this in the assembly info patcher in team city? so that it will automatically increment the versions for each time it builds... i want some guidance and help in this...?!? 回答1: TeamCity can version assemblies for you with the AssemblyInfo Patcher build feature. To take advantage of this: Create a build parameter called %Major.Minor% . Set this manually to some value, e.g. 1.0 . On the General

TeamCity artifact from lastSuccessful branch build

*爱你&永不变心* 提交于 2019-12-03 11:18:18
I recently re-configured our TeamCity build configuration to take advantage of the Branch features to apply the same build configuration to multiple branches in the same repository. Now, I'm trying to setup an automated build script that can pull the latest artifact from TeamCity, but only for a specific branch. I was able to get it working fine on the default branch in the original configuration, using the TeamCity REST API, but can't figure out how to format the URL to pull the artifact for a specific branch. I've looked at the following resources, but to no avail: http://confluence

How to compose git log for pending changes in TeamCIty

こ雲淡風輕ζ 提交于 2019-12-03 11:17:13
I have a TeamCity agent configured to build my XCode projects and I use github. I would like to automatically include in my release notes the descriptions from all pending commits in TeamCity. How can I fetch them from github and store them in teamcity? Once I put them in a teamcity variable I can easily add them to my build script. VonC You could use the " Adding or Changing a Build Parameter from a Build Step " feature in order to update some build parameters right from a build step. You would need a step which would call git log origin/master..master (see " git: list commits not pushed to