[Previous Page ] [Main Documentation Page ]

Reproducing a previously built build.

Of course it can be done! I define my job in two sentences:
  1. Produce the builds on time.
  2. Be able to reproduce anything I have built.
MidWatch is designed to accomplish this. It would be worth nothing if it could not.

However, there is no direct UI for this, so you have to do some trickiness with the db.mb file directly. To the well trained MidWatch operator, (of which there is only me) this is easy. And once I outline the steps here, then of course anyone with the time and inclination can code the patch to do it.

  1. In tbl_ProductLaunchRecords, select the record the represents the branch you want to rebuild, and copy this record.
  2. Edit the ![ConfigSpec] in the copied record and insert the build number into the config spec:
    load ...
    
    element * CHECKEDOUT
    element * 4.2.00.0057
    element * ...\4.2.00_branch\LATEST
    element * 4.2.00_BP -mkbranch 4.2.00_branch
    element * \main\0 -mkbranch 4.2.00_branch
    
    I recomend using Project Launch Record Dialog to edit this.
    Note, this assumes that you have a label dropped for the build you are tring to recreate. If this is not the case, you can not be guarantied that you will build from exacly the same source. However, it is likely that if you do you builds at midnight, and no changes to the code were made in the first hour of the build, you could theoretically use a midnight time stamp rule here.
  3. Set the ![LabelCounter] field to 1 less than the build we are rebuilding. In this example, we set to 56.
  4. Add (or copy) a new record to tbl_ScheduledEvents, edit the record so that it points to the correct product ID in tbl_ProductLaunchRecord, set ![status] to any non "P" value. (You don't want the build to start yet!)
  5. Set ![ProductName] to something that is easy to remember I suggest "4.2.00.0057" in this case.
  6. With MidWatch started, (and you may have to close and restart MidWatch) open the scheduler, and select what you set for ![ProductName] in the previous step.
  7. Set for "tip" build, and set "Use and Increment Build Number". DO NOT SET "Drop Label".
  8. Do not set "Event re-occurs"
  9. Click the "Build Now" button.
  10. Go lower the blood level in your caffine stream. (Get a cup of coffee and relax :)
[Previous Page ] [Main Documentation Page ]