I use Perforce and I do not know of a way to do this. You could tell perforce not to sync the workspace and place that command as the first command of the build via batch or shell build step.
From: [email protected] [mailto:[email protected]] On Behalf Of Damian Gutierrez Sent: Tuesday, November 05, 2013 6:24 AM To: [email protected] Subject: Perforce plugin: changing the sync options The plugin offers the option "One Time Force Sync". This executes the sync command with a "-f" option. Is there a way to pass custom options to the sync command? I would like to execute the sync command in this way: p4 -r4 -vnet.maxwait=300 sync Reason: we are starting using Jenkins with Perforce. As the number of jobs grows, we have very often this problem: Caught exception communicating with perforce. Errors encountered while force syncing: error: Operation took too long (over 6.00 seconds); see 'p4 help maxlocktime'. And thus we want to change the timeout from 6 (default) to 300 sec. Or perhaps somebody has this problem and has a better idea? Bye, Damian -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
