views:

390

answers:

5

For some reason, I can't seem to get CruiseControl.net to checkout code to anywhere but the starteam working folder for a specificed view.

I've tried both overrideViewWorkingDir and overrideFolderWorkingDir, and neither seem to work.

Has anyone been able to do this?

+1  A: 

Are you looking for the project's workingDirectory element instead of the starteam override?

Ant
A: 
<sourcecontrol type="starteam">
 <executable>C:\Program Files\starbase\StarTeam 5.4\stcmd.exe</executable>
 <project>ProjectName/ViewName</project>
 <username>UserName</username>
 <password>Password</password>
 <host>127.0.0.1</host>
 <port>49201</port>
 <autoGetSource>true</autoGetSource>
 <overrideViewWorkingDir>C:\temp\ProjectName</overrideViewWorkingDir>
</sourcecontrol>
eed3si9n
A: 

I am facing the same problem. Is there a solution. My ccnet.config file looks like this:

<sourcecontrol type="starteam">
    <executable>E:\Program Files\Borland\StarTeam Cross-Platform Client 2008\stcmd.exe</executable>
    <!--<overrideViewWorkingDir>E:\WORK\Working Folders\CruiseControl\Project</overrideViewWorkingDir>-->
    <project>Project/Rel2.1</project>
    <username>user</username>
    <password>password</password>
    <host>cis01.somehere.company.com</host>
    <port>7100</port>
    <autoGetSource>true</autoGetSource>
    <timeout units="minutes">10</timeout>
</sourcecontrol>

Even if I enable overrideViewWorkingDir, it still does not work :(. Any ideas anybody?

Dan
A: 

Works fine for me with ccnet 1.4.3 and Startem Cross-Platform Client 2008 R2. Make sure XML is valid. I had overrideViewWorkingDir tag not properly closed and ccnet was ignoring it. Found it by running ccnet.exe from the command line instead of as a service. Also you can use Process Explorer from SysInternals to view command line arguments passed to stcmd.exe

Dmitriy Shvadskiy
A: 

Make sure your working folder properties are set to a relative and not a full path (ex: MyFolder instead of C:\MyProject\MyFolder) or it will override the override. I've seen files checked out to some very odd places in the past when people mistakenly put in full paths when adding a folder to a view.

Joseph Bongaarts