CruiseControl.Net - Get without using working directory

If you are having a problem using Vault, post a message here.
Post Reply
ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

CruiseControl.Net - Get without using working directory

Post by ajj3085 » Sat Jan 08, 2011 10:27 pm

Hi,

I'm trying to get a project which will simply update the ccnet.config when it's changed in the repo. The documentation seems to indicate that I can get the source into a folder which is not a working copy, which is wha I want since nothing will every be checked in for this location, but it doesn't seem to work. Also, is there anyway to get just one file? The <folder /> node always wants a folder, but in this case I just need one file.

Thanks
Andy

<project name="CCNet.config - Configuration Update">
<workingDirectory>d:\BuildServer\</workingDirectory>
<artifactDirectory>d:\BuildServer\Artifacts</artifactDirectory>
<state type="state">
<directory>D:\BuildServer\State</directory>
</state>
<triggers>
<intervalTrigger name="continuous" seconds="30" initialSeconds="30" />
</triggers>

<sourcecontrol type="vaultproplugin" autoGetSource="true" applyLabel="false">
<username>user</username>
<password>pass</password>
<host>vault.mydowmain.com</host>
<repository>MyRepo</repository>
<folder>$/build_config</folder> <!-- Would like this to support $/build_config/ccnet.config -->
<ssl>true</ssl>
<useWorkingDirectory>true</useWorkingDirectory> <!-- Seems like false shoudl wor, but it doesn't -->
<workingDirectory>.</workingDirectory>
<deleteItemsThatAreNotInTheRepository>false</deleteItemsThatAreNotInTheRepository>
</sourcecontrol>
</project>

System.Exception: $/build_config has no working folder set.
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProClient.GetVersion(String repositoryFolderPath, String workingDir, Int64 folderVersion, Boolean useWorkingDir, Boolean deleteItemsThatAreNotInTheRepository)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProVaultSourceControl.GetSource(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: CruiseControl.Net - Get without using working directory

Post by Beth » Mon Jan 10, 2011 2:41 pm

Try setting UseWorkingFolder to false. Then put the full path to the CCNET directory as the working directory.
Beth Kieler
SourceGear Technical Support

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Re: CruiseControl.Net - Get without using working directory

Post by ajj3085 » Mon Jan 10, 2011 6:13 pm

Something I did got it working, even when I set the useWorkingDirectory to false. Not exactly sure what.

Thanks!
Andy

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: CruiseControl.Net - Get without using working directory

Post by Beth » Tue Jan 11, 2011 1:53 pm

Thank you for the update.
Beth Kieler
SourceGear Technical Support

Post Reply