Gautam Goenka (MSFT) - Continuous Integration with Assembly Version task
"Changgyu from Avanade brought this interesting problem to my attention -
If you are using Continuous Integration with Assembly Version task, build server will go into infinite recursion of builds. Each CI build will update the assembly version and the task will make the checkin, which in turn will ask the CI web service for another build.
Luckily, Changgyu found a simple and elegant solution for this. The Assembly Version task makes the checkin with a fixed comment string and while subscribing for the checkin event, you can use that info as the filter. To do this, just pass following extra switch to the BisSubscribe command that you are using for subscribing to the event -
/filter "(Comment<>’Auto-Build: Version Update’)"
where ’Auto-Build: Version Update’ is the fixed comment string.
Special thanks to Changgyu for sharing this.
Thanks." [Leached in full . All credits, etc, back to Gautam]
Gautam’s post solves a problem that I would have run into sooner or later (I love having problems solved before I have them... ;) His link to the MSBuild Assembly Version task and the MSDN article, Continuous Integration Using Team Foundation Build, is also very cool.
I now have two TFS projects (I migrated another yesterday) and am interested in going the CI route, making his info and links are very timely...
BTW, if you’re interested in TFS/TeamBuild you should check out the rest of his posts...
Technorati Tags: TFS, Team Foundation Server, Team Build, Continuous Integration
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...