问题
this Question moved to how to prevent an Gated Check-In to put the Keyword ***NO_CI*** in the Comment
where I put the Question in more detail with my gained knowledge
For ensuring Code Quality and Unit Testing I habe established a Gated Check-In Build in my Project.
Also there is another Build Definition to be triggered by Check-In (Continuous Integration Build), which I want to have build after Check-In.
My expectation was, that The Gated Check in was executed and after successful Build and Commit (by the Build Service User) the other Build is Triggered.
But this is not the Case.
Does any one have an Idea how i get this working, that the Continuous Integration Builds are also triggered by Check-In from the Build Service
回答1:
In general, it is expected that after a Gated-Build happens & succeeds - nothing else happens after that automatically.
TFS goes to the extend of actually placing a trailer in the commit comments, the infamous ***NO_CI***
that actually tells TFS not to trigger a CI-build after this specific commit.
Check here and here for further descriptions on how it works.
In fact, if you look at this answer, you might find a way to get what you 're after: what @dkpatt did wrong, might be your solution.
回答2:
How to remove the NO_CI from a build--
Open the build template (e.g. DefaultTemplate) in WorkFlow.
Search (Current Document/Current Window) for "NoCIOption".
The Container should be labeled "GetWorkspace" of type SyncWorkspace.
Open Properties (F4).
Set the value of NoCIOption to False.
Save the build template.
来源:https://stackoverflow.com/questions/10101144/combining-gated-checkin-and-continuious-integration-builds-in-team-foundatio