Category Archives: DevOps

New Swedish Microsoft ALM/DevOps Meetup

image

Together with other Swedish ALM MVPs and colleagues at Solidify we’ve decided it’s time kick off a Swedish Microsoft ALM/DevOps meetup! We plan to meet about once a month to discuss the concepts and ideas in our field.

The first meeting is on October 25 at the Solidify office in Stockholm. We’re very happy to have Jose Rady Allende, program manager on the Microsoft VSTS team, join us online to talk about the Microsoft Team Service Agile Transformation story. We’ll also going to have a couple of lightning talks on some cool features in VSTS.

Here’s the link to the  meetup: http://www.meetup.com/swedish-ms-alm-devops/ and make sure to join the group so you don’t miss the next meetup!

Retain builds from Release Management

When releasing with Microsoft Release Manager “vNext” the linked builds don’t automatically get marked as retained forever. If you want to be able to re-deploy released builds you want to ensure the builds are not deleted by retention polices. It’s a good idea to let the release definition take care of this (at some point, perhaps in the release to production stage) and mark the released builds as retained.

Here’s a PowerShell script that gets the builds used in the release and set the “keep forever” flag on the builds:

image

You can use this from your release definition either by including the script in one of the build artifacts and reference it or using an in-line PowerShell script step:

image

Note: the script above works with an on-prem TFS (using default credentials), if you want to use it with VSTS you need to include an authentication header instead and pass a personal access token.

$username = “”
$password = “PASTE-YOUR-PERSONALACCESSTOKEN-HERE”
$basicAuth = (“{0}:{1}” -f $username,$password)
$basicAuth = [System.Text.Encoding]::UTF8.GetBytes($basicAuth)
$basicAuth = [System.Convert]::ToBase64String($basicAuth)
$headers = @{Authorization=(“Basic {0}” -f $basicAuth)}

Then replace the –UseDefaultCredentials with -headers $headers.

Get the complete script here (rename to .ps1).