Why is my TFS Lab build picking a really old build to deploy?

I was working on a TFS lab deployment today and to speed up testing I set it to pick the build of the TFS build that actually builds the code, as opposed to queuing a new one each time. It took me ages to remember/realise why it kept trying to deploy some ancient build that had long since been deleted from my test system. The reason was the build means the last successful build, not the last partially successful build....

August 1, 2013 · 1 min · Richard Fennell

Fix for ‘Cannot install test agent on these machines because another environment is being created using the same machines’

I recently posted about adding extra VMs to existing environments in Lab Management. Whilst following this process I hit a problem, I could not create my new environment there was a problem at the verify stage. It was fine adding the new VMs, but the one I was reusing gave the error ‘Microsoft test manager cannot install test agent on these machines because another environment is being created using the same machines’...

July 29, 2013 · 2 min · Richard Fennell

Making the drops location for a TFS build match the assembly version number

A couple of years ago I wrote about using the TFSVersion build activity to try to sync the assembly and build number. I did not want to see build names/drop location in the format ‘BuildCustomisation_20110927.17’, I wanted to see the version number in the build something like ‘BuildCustomisation 4.5.269.17’. The problem as I outlined in that post was that by fiddling with the BuildNumberFormat you could easily cause an error where duplicated drop folder names were generated, such as...

July 27, 2013 · 4 min · Richard Fennell

I can never remember the command line to add use to the TFS Service Accounts group

I keep forgetting when you use TFS Integration Platform that the user who the tool (or service account is running as a service) is running as has to be in the “Team Foundation Service Accounts” group on the TFS servers involved. If they are not you get a runtime conflict something like Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.PermissionException: TFS WIT bypass-rule submission is enabled. However, the migration service account ‘Richard Fennell’ is not in the Service Accounts Group on server ‘http://tfsserver:8080/tfs’....

July 26, 2013 · 2 min · Richard Fennell

An attempted return for ‘Brian the build bunny’

Background Back in 2008 Martin Woodward did a post on using a Nabaztag as a build monitor for TFS, ‘Brian the build bunny’. I did a bit more work on this idea and wired into our internal build monitoring system. We ended up with a system where a build definition could be tagged so that it’s success or failure caused the Nabaztag to say a message. This all worked well until the company that made Nabaztag went out of business, the problem being all communication with your rabbit was via their web servers....

July 23, 2013 · 7 min · Richard Fennell

Adding another VM to a running Lab Management environment

If you are using network isolated environment in TFS Lab management there is no way to add another VM unless you rebuild and redeploy the environment. However, if you are not network isolated you can at least avoid the redeploy issues to a degree. I had a SCVMM based environment that was a not network isolated environment that contained a single non-domain joined server. This was used to host a backend simulation service for a project....

July 23, 2013 · 2 min · Richard Fennell

Experiences with a Kindle Paperwhite

I wrote a post a while ago about ‘should I buy a Kindle’, well I put if off for over a year using the Kindle app on my WP7 phone, reading best part of 50 books and been happy enough without buying an actual Kindle. The key issue being poor battery life, but that’s phones for you. However, I have eventually got around to getting a Kindle device. They key was I had been waiting for something that used touch, had no keyboard, but most importantly worked in the dark without an external light....

July 20, 2013 · 2 min · Richard Fennell

Washing your phone headset

As part of my on-going experiments to see what pieces of personal electronics can be put through a washing machine on 40C wash, I can confirm the headset off my Nokia phone has survived.

July 14, 2013 · 1 min · Richard Fennell

Minor issue on TFS 2012.3 upgrade if you are using host headers in bindings

Yesterday I upgraded our production 2012.2 TFS server to update 3. All seemed to go OK and it completed with no errors, it was so much easier now that the update supports the use of SQL 2012 Availability Groups within the update process, no need to remove the DBs from the availability group prior to the update. However, though there were no errors it did reported a warning, and on a quick check users could not connects to the upgraded server on our usually https URL....

July 11, 2013 · 2 min · Richard Fennell

Setting SkyDrive as a trusted location in Office 2013

We use a VSTO based Word template to make sure all our documents have the same styling and are suitably reformatted for shipping to clients e.g revision comments removed, contents pages up to date etc. Normally we will create a new document using this template from our SharePoint server and all is OK. However sometimes you are on the road when you started a document so you just create it locally using a locally installed copy of the template....

July 9, 2013 · 2 min · Richard Fennell