Autobuild Test
Published 2.08.2007 by ~mattg
So, after spending a couple weeks of “free time” (see also: a spare few minutes at the end of the day or before lunch), I finally got a build script together using Powershell. In addition to parsing the VS Build logs for warning/errors, I added some functions to start/stop services, defragment hard drives based on their fragmentation percentage, and shutdown the machine.
I document all this in a simple HTML log file and mail it to myself. Overall, I’m pretty impressed with Powershell, especially given that it’s the first release. I will say the learning curve is a little steep, but now that I’m past that, it’s great to be able to leverage the power of the .NET framework in a shell format.
I doubt I’ll post the whole script as it’s a little long and not well commented. Maybe, as I comment it and clean it up a bit, I’ll post the scripts.
Update: 2.9.2007: I’m a moron and scheduled the script to run on Wednesday, not Thursday. So we’ll have to wait until Monday for the results.
Filed under Windows