Vault task for CruiseControl.NET
Moderator: SourceGear
-
- Posts: 1
- Joined: Tue Jan 11, 2005 8:42 am
- Contact:
Vault task for CruiseControl.NET
With true configuration (MODIFIED replaced to protect the innocent) we get the following error.
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\vault client\vault.exe history "$/src/MODIFIED" -host "MODIFIED" -user "MODIFIED" -password "MODIFIED" -repository "MODIFIED" -rowlimit 0
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) in d:\sourceforge\ccnet\project\core\sourcecontrol\ProcessSourceControl.cs:line 53
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.GetModifications(ProcessInfo info, DateTime from, DateTime to) in d:\sourceforge\ccnet\project\core\sourcecontrol\ProcessSourceControl.cs:line 38
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault.GetModifications(DateTime from, DateTime to) in d:\sourceforge\ccnet\project\core\sourcecontrol\Vault.cs:line 56
at ThoughtWorks.CruiseControl.Core.Project.GetSourceModifications(IIntegrationResult result) in d:\sourceforge\ccnet\project\core\Project.cs:line 185
at ThoughtWorks.CruiseControl.Core.Project.AttemptToRunIntegration(IIntegrationResult result) in d:\sourceforge\ccnet\project\core\Project.cs:line 163
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\program files\sourcegear\vault client\vault.exe history "$/src/MODIFIED" -host "MODIFIED" -user "MODIFIED" -password "MODIFIED" -repository "MODIFIED" -rowlimit 0
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) in d:\sourceforge\ccnet\project\core\sourcecontrol\ProcessSourceControl.cs:line 53
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.GetModifications(ProcessInfo info, DateTime from, DateTime to) in d:\sourceforge\ccnet\project\core\sourcecontrol\ProcessSourceControl.cs:line 38
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault.GetModifications(DateTime from, DateTime to) in d:\sourceforge\ccnet\project\core\sourcecontrol\Vault.cs:line 56
at ThoughtWorks.CruiseControl.Core.Project.GetSourceModifications(IIntegrationResult result) in d:\sourceforge\ccnet\project\core\Project.cs:line 185
at ThoughtWorks.CruiseControl.Core.Project.AttemptToRunIntegration(IIntegrationResult result) in d:\sourceforge\ccnet\project\core\Project.cs:line 163
The stack trace is that of Cruise Control.Net, so I'm not sure how much help we can be.
Have you tried from a command line? Does that give any indication of a problem?
Have you tried
Code: Select all
vault.exe history "$/src/MODIFIED" -host "MODIFIED" -user "MODIFIED" -password "MODIFIED" -repository "MODIFIED" -rowlimit 0
Jeff Clausius
SourceGear
SourceGear
I don't have any versions of Vault setup locally - please can someone confirm or deny whether moving the folder specification to the end of the history call would break Vault pre-version 2 installs? I'm just a bit concerned since we haven't heard of this problem before in CruiseControl.NET
Mike Roberts (CruiseControl.NET lead)
Mike Roberts (CruiseControl.NET lead)
FWIW, I just tested this on Vault 3.0.3
produces the same results as:
Code: Select all
vault history $/project -host myserver -user jeffclausius -password somepass -repository "My Repository" -rowlimit 0
Code: Select all
vault history -host myserver -user jeffclausius -password somepass -repository "My Repository" -rowlimit 0 $/project
What version of Vault is this reported against?... would break Vault pre-version 2 installs
Jeff Clausius
SourceGear
SourceGear
I've been told that putting the Folder specification at the end is required for 2.0.6 .
Sorry for the confusion about 'pre version 2' - that was my fault - I thought that version 2 was the new version, not version 3.
If putting the Folder at the end is the 'most correct' thing for versions 2 & 3 I'll make the change to CCNet.
Mike
Sorry for the confusion about 'pre version 2' - that was my fault - I thought that version 2 was the new version, not version 3.
If putting the Folder at the end is the 'most correct' thing for versions 2 & 3 I'll make the change to CCNet.
Mike
That's what we currently do, specifically:
history (folder) -host (host) -user (user) -password (password) -repository (repository) -rowlimit 0
The user states that this does not work with 2.0.6 but that the following does:
history -host (host) -user (user) -password (password) -repository (repository) -rowlimit 0 (folder)
I'm confused now because you are saying that what we already do in CruiseControl.NET is right. Are you able to confirm that 2.0.6 has different behaviour?
Thanks,
Mike
history (folder) -host (host) -user (user) -password (password) -repository (repository) -rowlimit 0
The user states that this does not work with 2.0.6 but that the following does:
history -host (host) -user (user) -password (password) -repository (repository) -rowlimit 0 (folder)
I'm confused now because you are saying that what we already do in CruiseControl.NET is right. Are you able to confirm that 2.0.6 has different behaviour?
Thanks,
Mike
Off the top of my head, I really don't believe it matters, as I don't think this section has changed much in Vault 3.0.x. I'm confused as well, as I don't really see why someone would indicate to CruiseControl.Net that this was a bug.
If you're looking at Vault 2.0.6, I can double check a history query in a test environment.
If you're looking at Vault 2.0.6, I can double check a history query in a test environment.
Jeff Clausius
SourceGear
SourceGear
I just checked this in Vault 2.0.6. All three provided the same results:
As I previously mentioned, HISTORY <REPOSITORY_PATH> seems to make the most logical sense, since it is pairing together the repository path and vault command which are adjacent within the command.
Code: Select all
vault HISTORY $/a -server localhost -user my_user -password my_pass -repository "test repository" -rowlimit 0
Code: Select all
vault HISTORY -server localhost -user my_user -password my_pass -repository "test repository" $/a -rowlimit 0
Code: Select all
vault HISTORY -server localhost -user my_user -password my_pass -repository "test repository" -rowlimit 0 $/a
Jeff Clausius
SourceGear
SourceGear