We have a need such that build number would increment based on the latest changelist number that is going in the build. Say for example:
Configuration_A is now building with two changelists, say 12345 and 12678 are changelist/revision numbers associated with it. We would need the handle to access the changelist numbers so that we could decide how to increment build numbers. Wondering if there is a way to access changelist numbers either as parameters/function call in our plugin.
Solutions tried so far: We used "build.vcs.number" build parameter which gives us latest VCS revision/changelist number. What I mean by this is could be made clear in following example:
Configuration_A is linked to workspace "Work_A".
1) Two changelists have been checked into perforce with changelist numbers say 12345 and 12678. No one has checked any more changes into workspace "Work_A". Configuration_A has now started to build so, build.vcs.number would correspond to the highest number of above which is 12678. This is a good case where I am getting the latest changelist/revision number for Configuartion_A.
2) Two changelists have been checked into perforce with changelist numbers say 12345 and 12678. Another checkin just happened which has changelist number 13456 into workspace "Work_A". Configuration_A has now started to build, so build.vcs.number would correspond to the highest number of above which is 13456. I was expecting 12678 to be passed to my plugin.
Although build.vcs.number parameter is getting me the latest revision number for the workspace, we are interested in getting latest changelist number in the current build. So wondering how I could acess changelist numbers that are going in the current build for a given configuration.
Any help in this could be greatly appreciated.