Disable Building in Default Branch

When I disable Building in Default Branch, I get the error Failed to collect changes, error: Builds in default branch are disabled in build configuration

 

We are using Git with BitBucket, on TeamCity Enterprise 2018.1.3 (build 58658)

2 comments

Hi Justin,

A bit late of a response, but could you tell us about your workflow, which branches are there on the repository, and what is the VCS Root's Branch specification in TeamCity project settings?
Also, feel free to paste the full Build Log in a comment below, there might be some useful details.

0

We have master branch and feature branches. The VCS Root's is: Default to refs/heads/master and it's spec is:

+:refs/tags/*
-:refs/heads/master
-:refs/heads/release

[03:42:50]TeamCity server version is 2018.1.3 (build 58658)
[03:42:50]The build is removed from the queue to be prepared for the start
[03:42:50]Collecting changes in 3 VCS roots
[03:42:50]VCS Root details
[03:42:50]"devops" {instance id=1, parent internal id=89, parent id=devops, description: "https://.../scm/FAR/devops.git#refs/heads/master"}
[03:42:50]"security" {instance id=2, parent internal id=90, parent id=security, description: "https://.../scm/FAR/security.git#refs/heads/master"}
[03:42:50]"Ingestion-ReleaseTags" {instance id=891, parent internal id=463, parent id=IngestionReleaseTags, description: "https://.../scm/gen/data-ingestion.git#refs/tags/current"}
[03:42:50]Detecting changes in VCS root 'devops' (used in 'API - Deploy', 'Add APP Server To ELB' and 241 other configurations)
[03:42:50]Will collect changes for 'devops' starting from revision cad5c2849f7e297cdabf68e7c816e43bcfe4b5b1
[03:42:50]Detecting changes in VCS root 'Ingestion-ReleaseTags' (used in 'PROD: Data Ingestion', 'PROD: Data Ingestion - Pre-Migration' and 12 other configurations)
[03:42:50]Will collect changes for 'Ingestion-ReleaseTags' starting from revision 25465008c027a1db492034eb99c8239a6d2c880f
[03:42:50]Detecting changes in VCS root 'security' (used in 'API - Build', 'API - Deploy' and 363 other configurations)
[03:42:50]Will collect changes for 'security' starting from revision 3f9abc456041eefb9341a65bed654a7e538b7560
[03:42:50]Failed to collect changes, error: Builds in default branch are disabled in build configuration
[03:42:50]Failed to collect changes, error: Builds in default branch are disabled in build configuration
[03:42:50]Build finished

0

Please sign in to leave a comment.