SourceGear 8 Upgrade and CruiseControl (Bug #353)


Added by Mark Van Dyke over 2 years ago. Updated over 2 years ago.


Status:New Start date:02/05/2015
Priority:Urgent Due date:
Assignee:- % Done:

0%

Category:Source Control Spent time: -
Target version:-
Affected version:1.8.4

Description

Hello, I am using CruiseControl.NET 1.8.4 (the latest version) with SourceGear Vault Client. We were running SourceGear Vault Client 7.2 but we upgraded to version 8.

Since the upgrade our continuous integration is broken and I can't find any information on this online. It seems that CruiseControl cannot interpret the history command results from the Command line fro Vault Client. Here is an excerpt from the trace log. We are not operational at this time because we are unable to do a build in our Automated build environment. Please Help soon!


History

Updated by Mark Van Dyke over 2 years ago

Oops, here is the log file excerpt:

2015-02-05 11:00:04,531 [CwsBuild_Stage:INFO] Project: 'CwsBuild_Stage' is added to queue: 'CwsBuild_Stage' in position 0. Requestsource : continuous ()
2015-02-05 11:00:04,641 [CwsBuild_Stage:INFO] Queue: 'CwsBuild_Stage' is attempting to be in-use, trying to lock related queues
2015-02-05 11:00:04,641 [CwsBuild_Stage:INFO] Project: 'CwsBuild_Stage' is first in queue: 'CwsBuild_Stage' and shall start integration.
2015-02-05 11:00:06,297 [CwsBuild_Stage:DEBUG] C:\Program Files (x86)\SourceGear\Vault Client\vault.exe is version 8.0.0.192
2015-02-05 11:00:06,297 [CwsBuild_Stage:DEBUG] Vault CLC is at least version 3.1.7.
2015-02-05 11:00:06,313 [CwsBuild_Stage:INFO] Checking for modifications to $/pin/dev in Vault Repository "SomeRepository" between 05/02/2015 10:55:48 AM and 05/02/2015 11:00:06 AM
2015-02-05 11:00:06,359 [CwsBuild_Stage:DEBUG] Starting process [C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] in working directory [C:\dev] with arguments [versionhistory $/pin/dev rowlimit 1 -host vcostarsource -user SomeUser -password ** -repository SomeRepository]
2015-02-05 11:00:06,391 [CwsBuild_Stage:DEBUG] Not setting PriorityClass on [C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] to default Normal
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <vault>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <history>
2015-02-05 11:00:27,126 [15:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] standard-error stream closed -
null received in event
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <item version="25765" date="05/02/2015 10:59:01 AM" user="SomeUser" objverid="841182" txid="64427" />
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] </history>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <result>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <success>True</success>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] </result>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] </vault>
2015-02-05 11:00:27,126 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] standard-output stream closed -- null received in event
2015-02-05 11:00:27,142 [3:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] process exited event received
2015-02-05 11:00:27,173 [CwsBuild_Stage:DEBUG] Most recent folder version: 25765
2015-02-05 11:00:27,173 [CwsBuild_Stage:DEBUG] Most recent TxID: 64427
2015-02-05 11:00:27,173 [CwsBuild_Stage:DEBUG] The folder has changed.
2015-02-05 11:00:27,173 [CwsBuild_Stage:INFO] Retrieving detailed change list for $/pin/dev in Vault Repository "SomeRepository" between 05/02/2015 10:55:48 AM and 05/02/2015 11:00:06 AM
2015-02-05 11:00:27,173 [CwsBuild_Stage:DEBUG] Vault History command: FileName: [C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] -- Arguments: [history $/pin/dev excludeactions label,obliterate -rowlimit 0 -begindate 2015-02-05T10:55:48 -enddate 2015-02-05T11:00:06 -host vcostarsource -user SomeUser -password costar -repository SomeRepository] - WorkingDirectory: [C:\dev] -- StandardInputContent: [] -- Timeout: [120000]
2015-02-05 11:00:27,189 [CwsBuild_Stage:DEBUG] Starting process [C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] in working directory [C:\dev] with arguments [history $/pin/dev excludeactions label,obliterate -rowlimit 0 -begindate 2015-02-05T10:55:48 -enddate 2015-02-05T11:00:06 -host vcostarsource -user SomeUser -password ** -repository SomeRepository]
2015-02-05 11:00:27,189 [CwsBuild_Stage:DEBUG] Not setting PriorityClass on [C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] to default Normal
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <vault>
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <history>
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <item txid="64427" date="05/02/2015 10:59:01 AM" name="dev/src/mw/Cws" type="150" typeName="Pinned" version="1903" objverid="841179" user="SomeUser" actionString="Pinned GlobalAssemblyInfo.cs at version 77" />
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <item txid="64425" date="05/02/2015 10:58:57 AM" name="dev/src/mw/Cws/GlobalAssemblyInfo.cs" type="60" typeName="CheckIn" version="77" objverid="841156" user="SomeUser" actionString="Checked In" />
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <item txid="64424" date="05/02/2015 10:58:52 AM" name="dev/src/mw/Cws" type="220" typeName="UnPinned" version="1901" objverid="841152" user="SomeUser" actionString="Unpinned GlobalAssemblyInfo.cs from version 76" />
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <bugsreferenced />
2015-02-05 11:00:47,611 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <result>
2015-02-05 11:00:47,611 [15:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] standard-error stream closed -
null received in event
2015-02-05 11:00:47,627 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] <success>True</success>
2015-02-05 11:00:47,627 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] </result>
2015-02-05 11:00:47,627 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] </history>
2015-02-05 11:00:47,627 [14:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] standard-output stream closed -- null received in event
2015-02-05 11:00:47,627 [3:DEBUG] [CwsBuild_Stage C:\Program Files (x86)\SourceGear\Vault Client\vault.exe] process exited event received
2015-02-05 11:00:47,643 [CwsBuild_Stage:WARN] Source control failure (GetModifications): The output does not contain the expected <vault> element: <vault>
<history>
<item txid="64427" date="05/02/2015 10:59:01 AM" name="dev/src/mw/Cws" type="150" typeName="Pinned" version="1903" objverid="841179" user="SomeUser" actionString="Pinned GlobalAssemblyInfo.cs at version 77" />
<item txid="64425" date="05/02/2015 10:58:57 AM" name="dev/src/mw/Cws/GlobalAssemblyInfo.cs" type="60" typeName="CheckIn" version="77" objverid="841156" user="SomeUser" actionString="Checked In" />
<item txid="64424" date="05/02/2015 10:58:52 AM" name="dev/src/mw/Cws" type="220" typeName="UnPinned" version="1901" objverid="841152" user="SomeUser" actionString="Unpinned GlobalAssemblyInfo.cs from version 76" />
<bugsreferenced />
<result>
<success>True</success>
</result>
</history>

2015-02-05 11:00:50,158 [CwsBuild_Stage:INFO] Emailing "CwsBuild_Stage Exception in Build !" to
2015-02-05 11:00:50,580 [CwsBuild_Stage:INFO] Integration complete: Exception - 05/02/2015 11:00:47 AM

Updated by Ruben Willems over 2 years ago

I do not have any source gear source control to play with
Below is the code from CCNet that checks the output of Vault.
Seems like there is a breaking change there.

        /// <summary>
        /// The Vault command line client (vault.exe), at least for
        /// version 2.0.4, is not guaranteed to output valid XML in
        /// that there may be some not XML output surrounding the XML.
        /// This method strips away any non-XML    output surrounding
        /// the <vault>...</vault> elements.
        /// </summary>
        /// <param name="output">String containing all vault command-line client output.</param>
        /// <returns>string containing only the XML output from the Vault client.</returns>
        /// <exception cref="CruiseControlException">The <vault> start element or </vault> end element cannot be found.</exception>
        public static string ExtractXmlFromOutput(string output)
        {
            string value = MatchVaultElements.Match(output).Value;
            if (value.Length == 0)
            {
                throw new VaultException(string.Format(System.Globalization.CultureInfo.CurrentCulture,"The output does not contain the expected <vault> element: {0}", output));
            }
            return value;
        }

Also available in: Atom PDF