Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity fails to load build settings from VCS, ignores new settings

We have a TeamCity project configured with with Versioned Settings. It has a build which fails with the message Failed to load build settings from VCS.

We think we have understood the cause of this (There is two build configuration xml files that have the same name). So we have modified the appropriate files under the .teamcity folder, committed the changes and pushed to git.

However, TeamCity is not detecting or applying our modifications. In fact, we see clearly in the build log that TeamCity is still reading the build settings from the commit previous to the commit with the fix.

So, for some reason TeamCity keeps reading the old configuration. We have now done several commits to after the fix, but it makes no difference.

The documentation states that you can push the button Commit current project settings... to synchronize the settings. But we have tried doing so, and that did not help either.

We are using TeamCity Enterprise 9.1.3 (build 37176)

like image 206
Klas Mellbourn Avatar asked Nov 09 '22 13:11

Klas Mellbourn


1 Answers

What seems to have worked for me, was going to the affected project's overview page, clicking the "Actions" dropdown button, an choosing "Enforce clean checkout". That, combined with a TeamCity server restart, and it picked up the branch-specific VCS settings again.

Enforcing a clean checkout

like image 174
onnodb Avatar answered Nov 15 '22 04:11

onnodb