[Previous Page
] [Main Documentation Page
]
Reproducing a previously built build.
Of course it can be done!
I define my job in two sentences:
- Produce the builds on time.
- 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.
- In tbl_ProductLaunchRecords, select the record the represents the branch you want
to rebuild, and copy this record.
- 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.
- Set the ![LabelCounter] field to 1 less than the build we are rebuilding. In this example, we set to 56.
- 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!)
- Set ![ProductName] to something that is easy to remember I suggest "4.2.00.0057" in this case.
- 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.
- Set for "tip" build, and set "Use and Increment Build Number". DO NOT SET "Drop Label".
- Do not set "Event re-occurs"
- Click the "Build Now" button.
- Go lower the blood level in your caffine stream. (Get a cup of coffee and relax :)
[Previous Page
] [Main Documentation Page
]