|
|
|
[
Permlink
| « Hide
]
Mike Perham - 18/Jul/06 11:08 AM
In Perforce the checkout and update commands are the same (sync). We use a generated clientspec because we need to check out a project to a specific directory. You cannot check out code to a particular location without using a custom clientspec.
We are trying to use the perforce support for three things.
1) scm:update in cruisecontrol - must use existing clientspec 1&2 are run in cruise control, 2&3 are run locally. I guess we should set it just for the cruisecontrol box. Is that the idea? is maven.scm.persistcheckout the system property to use the existing p4 clientspec
There is a parameter where you can override the clientspec for SCM to use. I don't have the source in front of me but if you found the persist parameter, you can find this one too. :-p
persistcheckout would be used with continuum/cruisecontrol so it does not try to force sync a new copy of the code everytime. By persisting the clientspec, it will use the same clientspec the next time also and Perforce will only update changed files. Otherwise, it creates a temp clientspec, checks it out and deletes it afterwards - which can lead to really long checkout times for large projects. Which sucks if you are building every hour! There's no clear issue here so I'm closing this unless you have more specific feedback. The property is "maven.scm.perforce.clientspec.name".
We are avoiding using scm:update in the cruisecontrol project config. Its easy enough to use the cruisecontrol options, and probably safer since the synced changelist number becomes the build label.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||