While waiting for an answer I shared the question on twitter, this resulted being given a guiding hand by Stephen Pope (his response)
He suggested using the PowerShell enhancements offered by Sitecore Rocks, it took a while (documentation is thin on the ground) but I have achieved the result I was after :)
As a record of what I found, the following is provided as a potential answer to my own question, though big thanks to Jay S who's solution I would have used if not for this..
Anyway..
Using an additional build step in the Teamcity build, I have the following:
The magic happens within the Publish-SCDatabase commandlet which when you run Get-Help shows a bunch of parameters, it turns out that only two of the parameters are usable -Name and -Mode
Finding documentation beyond the vs-plugins link above was impossible, so a bit of .net reflection and a good dose of patiense showes that the parameters have the following options:
- -Name The name of the database to run the publish against (default is the psdrive database
- -Mode Sets the publish mode of the comandlet with the following options available:
- 0: Republish
- 1: Incremental
- 2: Smart
- 3: Rebuild
Of course better documentation, and possibly additional info via the Get-Help commandlet would be nice.. if the rocks project was open source, I may well have forked the project to generate the additional help.
Now that there are two very good solutions to this question, I will let peoples votes decide on which is the best answer, in a few days I will check the votes and mark the most voted as the accepted answer.