-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins version: 1.626, Perforce Plugin version: 1.3.35
I noticed that the P4 plugin keeps triggering builds on the same Perforce changelist even if no new changelist was submitted to Perforce. I had a look at the polling log and it seems like the "p4 counter change" command is used by the p4 plugin to determine the latest changelist available on Perforce ( see log at the end of this message ). This is probably wrong, since the Perforce doc (https://www.perforce.com/perforce/r12.2/manuals/cmdref/counter.html) says that this command returns "The last changelist number known to the Perforce service (the output of p4 counter change) includes pending changelists created by users, but not yet submitted to the depot. ". This probably explains the bug, since the plugin triggers a build as long as somebody has a pending changelist in his workspace whose changelist number is higher than the last submitted changelist.
Started on Jan 19, 2016 1:01:00 PM
Polling SCM changes on BUILDMACHINE
Looking for changes...
Using node: BUILDMACHINE
Using remote perforce client: build_basic-1162883061
[Jenkins] $ p4 workspace -o build_basic-1162883061
[Jenkins] $ p4 counter change
[Jenkins] $ p4 -s changes -s submitted //SecretPath/...@176960,@329345
Latest submitted change selected by workspace is 329343
[Jenkins] $ p4 describe -s 329343
[Jenkins] $ p4 info
[Jenkins] $ p4 -G where //...
Looking for changes...
Using node: BUILDMACHINE
Using remote perforce client: Build_BuildScripts-1162883061
[Jenkins] $ p4 workspace -o Build_BuildScripts-1162883061
[Jenkins] $ p4 counter change
[Jenkins] $ p4 -s changes -s submitted //Build_BuildScripts-1162883061/...@176960,@189267
No changes found.
Done. Took 17 sec
Changes found
- is related to
-
JENKINS-34051 Polling of Jenkinsfile always finds changes
-
- Closed
-
-
JENKINS-32518 Populate option "Forced clean and sync" causes continual rebuilds
-
- Closed
-
I've seen this issue on and off for months now across various jobs. I'm not sure if its specifically related to pending changelists, though. I have a job now that doesn't have any pending changelists (unless there are some in default) that is in the constant queuing state.Edit: My comment was based on this being an issue against "p4-plugin".