Environment:Platform: All, OS: All
I'm trying to simplify moving some projects over from cruisecontrol. We've been
using the Cruisecontrol P4ChangeListLabelIncrementer to define the 'label' build
property to be the latest change, and we then use this in branding our jars,
etc. with a version number.
I observed a strange behaviour. The Hudson Perforce plugin seems to be using
the wrong changelist number. Has anyone else observed it?
<snipped from the hudson job console log>
Changing P4 Client View to: //depot/sw/project/main/...
[workspace] $ p4 -s client -i
Last sync'd change: 5953
[workspace] $ p4 changes -m 25 //depot/sw/project/main/...
[workspace] $ p4 describe -s 5955
[workspace] $ p4 describe -s 5954
Sync'ing workspace to depot.
[workspace] $ p4 sync //depot/sw/project/main/...#head
Sync complete, took 275 MS
-Dlabel=$P4_CHANGELIST clean fullbuild doc analyze
And later on in the log file is evidence that label was defined as 5953 (the
state of the workspace prior to syncing) rather than 5955 (the state of the
workspace after syncing).