문제

I have a TeamCity project with a build step that updates some metadata in our csproj files in source control.

These commits are marked with the comment "Build Server".

Is there anyway to make TeamCity ignore such commits for the purpose of establishing whether there are any changes pending.

I have filtered this out of the trigger so that I don not get an infinite build loop but would like to not even have "pending changes" listed until a commit with a different comment arrives.

enter image description here

도움이 되었습니까?

해결책 2

I don't think such a feature exists in Teamcity today. There are checkout rules for the VCS Settings, but that works on the folders only (i.e. you need to mention the folders to be excluded in that case). There is an open request on checkout rules http://youtrack.jetbrains.com/issue/TW-3460. You may want to check that out.

다른 팁

You can set the trigger rules on the vcs build trigger. There is a help icon that describes the rules, but if it helps, here's a copy of my rules:

-comment:.*\*$:**/*
-:ldap/**
-:schema/**
-:scripts/**
-:**/*.jsp
-:**/*.css
-:**/*.html
-:**/*.png
-:**/*.pdf
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top