Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I configure team city to build latest version only instead of each commit

I am using teamcity 8.0 with github.

I have a continuous deployment build configuration set up to look at our master branch and when changes occur they are built and deployed.

When code is ready for deployment it is merged in from another branch into master, so master is always a snapshot of the last deployed code. ongoing development happens on other branches.

The problem we have is that when we deploy there is usually at least 20 commits and often many more from a mix of developers. Team city builds and deploys each commit separately which takes an age and leaves our live system unusable while this is occurring.

Is there a way to configure team city to just build the most recent code when it detects a change instead of every individual commit

like image 514
Twisted Avatar asked Aug 13 '13 14:08

Twisted


People also ask

How do I edit a build configuration in TeamCity?

When you select a build configuration from the list of build configurations, TeamCity displays the Build Configuration Home page where you can preview its recent build results. To access the build configuration's settings, click Edit Configuration Settings in the upper right corner of the screen.

What is a good build number for TeamCity?

When you use TeamCity to build a project with multiple branches, it’s desirable to have different build numbers depending on the branch. For example, instead of simple TeamCity build numbers like 15, 16, and so on, you might have: Branch master: 1.6.15.

How do I run a TeamCity build on a fresh server?

A fresh TeamCity server, installed as described here, has one registered build agent that runs on the same computer. Agents are responsible for running TeamCity builds, so let's use it to run the first one, based on our recently created configuration. On the Build Configuration Settings page, click Run in the upper right corner:

How do I use TeamCity to test my repository?

TeamCity will identify the type of your repository, test the connection, and autoconfigure the repository settings, as well as suggest the project and build configuration names. Click Proceed. TeamCity will scan your VCS repository and autodetect the build steps.


1 Answers

Review your VCS trigger settings. "Per-checkin Triggering" should be turned off. Also, check if you are using GitHub Service hook for "TeamCity" - it may also produce number of builds.

like image 140
Nikita Skvortsov Avatar answered Jan 01 '23 13:01

Nikita Skvortsov