I've discovered an issue with the Perforce plugin.
I have a job called "GenerateClassLayout", which is configured to "Let Jenkins Manage Workspace View" and "Clean Workspace before Each Build".
The Poll SCM schedule is set to */2 * * * * - so poll every 2 minutes.
When I check the polling log I see this:
Syncing all the required files takes longer than 2 minutes so whilst it's still syncing another build is triggered and the polling log contains this:
As you can see the build start time is exactly 2 minutes later. The question is why is this happening?
I suspect it's something to do with the fact that the workspace is not up to date based on this text in the log: "Workspace not up-to-date."
If I change my polling time to 5 minutes, which gives the system plenty of time to sync then all is well - this is not a solution though.
Thanks in advance,