List Info

Thread: ChangeList number changes between creation and submit.




ChangeList number changes between creation and submit.
user name
2006-10-04 17:38:40
**** Duplicate also sent to supportperforce.com">supportperforce.com ****
 
I have a build system that performs the following sequence using P4 tasks included with Ant 1.6.5:
  1. Get/reserve new ChangeList number using p4change.
  2. Checkout product buildID file using p4edit.
  3. Update buildID file with new build number and ChangeList number from step 1.
  4. Run build tasks.
  5. If build succeeds, submit the buildID file changes using p4submit; else revert the ChangeList reserved in step 1 using p4revert.
So far this has seemed to work for several months. Recently I noticed that the ChangeList number that I reserved in step 1 is not the one that was used on the submit in step 5 above. This has caused me to have to manually change the file to get it in sync with the correct ChangeList. When the problem happens, the actual ChangeList number used will be 2 or three numbers higher than the one reserved in step 1. Also, the original ChangeList is not present in the Perforce system. We use this information to identify build points. It is critical that it is accurate so that we can properly identify changes that occur between each build.
 
Question: Is there a way to ensure that the ChangeList recorded in the buildID file is the same one used to submit the change?
 
See attached Ant module(sourceControlTasks.xml) containing the following build tasks:
 
update.buildID:Gets a new ChangeList number and uses it to checkout the buildID file. The buildID file is updated. Calls revert.buildID if on error.
submit.buildID: Submits change using ChangeList number saved from update.buildID. Calls revert.buildID if on error.
revert.buildID: Reverts ChangeList saved from update.buildID.
 
Thanks.....
Scott Lavender | SCM Specialist | Visiprise | office: 770.619.4166 | www.visiprise.com
 

It is our company policy not to accept email of any data controlled by the International Traffic in Arms Regulations (ITAR). Please direct inquiries to ITARvisiprise.com">ITARvisiprise.com for instructions and authorization to transmit such data.

 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )