We have been using Vault 2 (and now 3.x) with CruiseControl.NET (ccnet), fxcop and nunit for about six month now.
I have one issue that continues to annoy me is the fact that I cant enable automatic labeling of my successful builds. When I try to do this the ccnet detects this as a change and starts a new build.
In the documentation for the Vault Source Control block it states that one should use a Filtered Source Control Block to get around this problem.
Has anyone actually got this working?
Kind regards
Lars Buur
CCNET - Filtering out Label Changes
Moderator: SourceGear
I've gotten it to work for our project by modifying the ccnet code. I probably should submit a patch to the ccnet folks, but I haven't had a chance yet.
The change needs to be made to VaultHistoryParser.cs.
In VaultHistoryParser.Parse(), change this:
to this:
and add this method:
HTH
The change needs to be made to VaultHistoryParser.cs.
In VaultHistoryParser.Parse(), change this:
Code: Select all
if(EntryWithinRange(node, from, to))
{
Modification modification = GetModification(node);
mods.Add(modification);
}
Code: Select all
if(EntryWithinRange(node, from, to))
{
Modification modification = GetModification(node);
if( ShouldIncludeModificationType( modification ) )
{
mods.Add(modification);
}
}
Code: Select all
private bool ShouldIncludeModificationType( Modification modification )
{
return modification.Type != "Labeled";
}