You can use an exec task in the pre-build stage to do this.  It's
simple to do.  Just do a command such as:

   p4 -c {workspace} sync //{workspace}/...#0

If the username and password are not set in the env or in the
registry, then you can specify them on the command line:

   p4 -c {workspace} -u {user} -P {password} sync //{workspace}/...#0


On Dec 13, 6:53 am, JamesQu <[email protected]> wrote:
> Whether cruisecontrol support to exec some p4 operations before build?
>
> For example, I want to "remove all files from workspace" and "get the
> latest" before build.
>
> Thanks a lot for your help.

Reply via email to