ccnet.config file with sourcegear vault

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
nkroy
Posts: 9
Joined: Thu Oct 11, 2007 2:00 pm

ccnet.config file with sourcegear vault

Post by nkroy » Thu Oct 11, 2007 2:40 pm

i wanted Cruise control to automatically build it from my project

i was able to set up everything correctly and could successfully launch a dashboard ( getting started with scratch) . Now i changed my ccnet.config to work accoridngly and everytime it complains about not getting connected to vault

Here is part of my config

<cruisecontrol>
<project name="">
<sourcecontrol type="vault" autoGetSource="true" applyLabel="true">
<executable>C:\Program Files\SourceGear\Vault Client\vault.exe</executable>

<username></username>

<password>password</password>

<host>vault.{companyname}.biz</host>

<repository>Pho</repository>

<folder>$</folder>

<ssl>false</ssl>

<useWorkingDirectory>true</useWorkingDirectory>

<workingDirectory>C:\Projects\</workingDirectory>

<cleanCopy>true</cleanCopy>

</sourcecontrol>

<triggers>
<intervalTrigger seconds="60" />
</triggers>

<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
<workingDirectory>C:\Projects\Main\Src\Sln\</workingDirectory>
<projectFile>Pho.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>
<targets>Build</targets>
<timeout>15</timeout>
<logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
</tasks>
<publishers>
<xmllogger />
</publishers>

</project>

</cruisecontrol>

Now that is my vault servier hOw do i get it connected to the vault server

[:DEBUG] <exception>System.Exception: The connection to the serve
r failed: server cannot be contacted or uses a protocol that is not supported by
this client. Unable to connect to http://vault.{companyname}.biz/VaultService. N
o server was found at the specified URL. Please verify your network settings us
ing the Options dialog under the Tools menu in the Vault GUI Client. Web Except
ion: The remote name could not be resolved: 'vault.{companyname}.biz' ---> Syste
m.Exception: Unable to connect to http://vault.{companyname}.biz/VaultService. No
server was found at the specified URL. Please verify your network settings usi
ng the Options dialog under the Tools menu in the Vault GUI Client. Web Excepti
on: The remote name could not be resolved: 'vault.{companyname}.biz'

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Oct 11, 2007 2:52 pm

The easiest thing to do would be to take CruiseControl.NET out of the equation until you know you can connect.

Using a browser on the CCNet machine, can you connect to http://vault.{companyname}.biz/VaultService?
Ian Olsen
SourceGear

nkroy
Posts: 9
Joined: Thu Oct 11, 2007 2:00 pm

Post by nkroy » Thu Oct 11, 2007 3:10 pm

Yeah i could open it

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Oct 11, 2007 3:14 pm

Was your first test using the command-line ccnet.exe, or running as a service? Frequently people run the service as an account with insufficient rights.

Try ccnet.exe from the command-line when logged in as the same user as you just tried the browser test, or set the service to run as that user.
Ian Olsen
SourceGear

nkroy
Posts: 9
Joined: Thu Oct 11, 2007 2:00 pm

Post by nkroy » Thu Oct 11, 2007 3:44 pm

Yeah i did my test with ccnet.exe not through services

yeah i am doing all this on my box . i have different user name and passwords on my box. at my company we do not have exchange server or active directory . So intentionally my box will be the build server

Now do you you want me to run the service as the same ones on the config

Dont i specify in my config to launch vault login with the credentials i provide in my config file and pull up the repository

nkroy
Posts: 9
Joined: Thu Oct 11, 2007 2:00 pm

Post by nkroy » Thu Oct 11, 2007 4:37 pm

so i got though that error . now it picks up the Modifications in the repository but then again it get to another exception

Is this a msbuild error now

2007-10-11 15:23:51,593 [project:DEBUG] Most recent folder version: 1694
2007-10-11 15:23:51,593 [project:DEBUG] Most recent TxID: 23310
2007-10-11 15:23:51,593 [project:DEBUG] The folder has changed.
2007-10-11 15:23:51,593 [project:INFO] Retrieving detailed change list for $ in Vault Repository "Pho" between 10/11/2007 3:06:58 PM and 10/11/2007 3:23:48 PM
2007-10-11 15:23:51,593 [project:DEBUG] Vault History command: FileName: [C:\Program Files\SourceGear\Vault Client\vault.exe] -- Arguments: [history $ -excludeactions label,obliterate -rowlimit 0 -begindate 2007-10-11T15:06:58 -enddate 2007-10-11T15:23:48 -host vault.project.biz -user -password password -repository Pho] -- WorkingDirectory: [C:\Projects\] -- StandardInputContent: [] -- Timeout: [120000]
2007-10-11 15:23:51,593 [project:DEBUG] Starting process [C:\Program Files\SourceGear\Vault Client\vault.exe] in working directory [C:\Projects\] with arguments [history $ -excludeactions label,obliterate -rowlimit 0 -begindate 2007-10-11T15:06:58 -enddate 2007-10-11T15:23:48 -host vault.project.biz -user na -password password -repository Pho]
2007-10-11 15:23:58,093 [project:DEBUG] <vault>
2007-10-11 15:23:58,093 [project:DEBUG] <history>
2007-10-11 15:23:58,093 [project:DEBUG] <item txid="23310" date="10/11/2007 3:18:45 PM" name="$/Main/Src/Web/Controls/Phoenix.Web.UserControls/controls/miniprofilecontrol.ascx.cs" type="60" typeName="CheckIn" version="25" objverid="273642" user="sean" actionString="Checked In" />
2007-10-11 15:23:58,093 [project:DEBUG] </history>
2007-10-11 15:23:58,093 [project:DEBUG] <bugsreferenced />
2007-10-11 15:23:58,093 [project:DEBUG] <result>
2007-10-11 15:23:58,093 [project:DEBUG] <success>True</success>
2007-10-11 15:23:58,093 [project:DEBUG] </result>
2007-10-11 15:23:58,187 [project:DEBUG] </vault>
2007-10-11 15:23:58,203 [project:INFO] 1 modification detected.
2007-10-11 15:23:58,218 [project:INFO] Building: IntervalTrigger triggered a build (IfModificationExists)
2007-10-11 15:23:58,218 [project:DEBUG] Cleaning out source folder: C:\Projects\
2007-10-11 15:23:58,218 [project:INFO] Getting source from Vault
2007-10-11 15:23:58,218 [project:DEBUG] Starting process [C:\Program Files\SourceGear\Vault Client\vault.exe] in working directory [C:\Projects\] with arguments [getversion 1694 $ C:\Projects\ -useworkingfolder -merge overwrite -makewritable -backup no -setfiletime checkin -host vault.project.biz -user naren -password password -repository Phoenix]
2007-10-11 15:24:00,859 [project:DEBUG] <vault>
2007-10-11 15:24:00,859 [project:DEBUG] <error>
2007-10-11 15:24:00,859 [project:DEBUG] <exception>System.NullReferenceException: Object reference not set to an instance of an object.
2007-10-11 15:24:00,859 [project:DEBUG] at VaultClientOperationsLib.VaultClientFolder..ctor(VaultFolderDelta fd, VaultClientFolder parent)
2007-10-11 15:24:00,859 [project:DEBUG] at VaultClientIntegrationLib.GetOperations.performGetVersion(String objectPath, Int32 version, String strDestFolder, GetOptions getOptions)
2007-10-11 15:24:00,859 [project:DEBUG] at VaultClientIntegrationLib.GetOperations.ProcessCommandGetVersion(String objectPath, Int32 version, GetOptions getOptions)
2007-10-11 15:24:00,859 [project:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
2007-10-11 15:24:00,859 [project:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
2007-10-11 15:24:00,859 [project:DEBUG] </error>
2007-10-11 15:24:00,859 [project:DEBUG] <result>

Post Reply