Batch files or scripts are great ways to automate
the update and build process.
The advantages
of automation include:
- Your build process is reproducible because it is
done the same way every time.
- Your build is less error-prone because you do not have to
remember all the details every time you build.
- You can schedule the process to run at times when
you are not around or when the system load is light, such as at night.
- Others can take over the build process when you
are away.
- You can write a batch file or script program to
check the update and build logs automatically. The program can notify
you of words or patterns that indicate failure or possible problems.
(Even if you automate the build process, skim the logs.)
When you automate a build, log the output so
you can diagnose any problems that occur.
Note: When
you automate builds, you cannot resolve conflicts before the build.
If conflicts are found, you might need to run the build cycle (or
parts of it) again.