Skip to content

Instantly share code, notes, and snippets.

View georgeck's full-sized avatar
🏠
Working from home

George Chiramattel georgeck

🏠
Working from home
View GitHub Profile
@mbenford
mbenford / SetReleaseParameters.ps1
Created August 11, 2014 01:12
Powershell script for TeamCity that sets some parameters to be used with Octopus Deploy based on the current branch
function Is-Default-Branch {
return "%teamcity.build.branch.is_default%" -eq "true"
}
function Set-TeamCity-Parameter($name, $value) {
Write-Host "##teamcity[setParameter name='$name' value='$value']"
}
if (Is-Default-Branch) {
$releaseNumber = "%octopus.master.releaseNumber%"