Skip to content

Instantly share code, notes, and snippets.

View pascalsz's full-sized avatar

Pascal Szorath pascalsz

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%"