Bamboo Auto Labeling using Powershell During Build Process

#### Usage: ${bamboo.plugin.deployer.username} ${bamboo.plugin.deployer.password} ${bamboo.planKey}-${bamboo.buildNumber} ${bamboo.appname}-${bamboo.repository.git.branch}.${bamboo.version}.${bamboo.buildNumber} [cmdletBinding()] param ( [parameter(Mandatory = $true)] $bamboouser, [parameter(Mandatory = $true)] //$bamboopassword, [parameter(Mandatory = $true)] $planbuild, [parameter(Mandatory = $true)] $label, [parameter(Mandatory = $true)] $bamboourl ) $bamboo_userpass = “$($bamboouser):$($bamboopassword)” $label = $label -replace ‘\.’,’-‘ ################## Label Build ########### write-host “Labeling $bamboourl/browse/$planbuild as $label” #curl -s -X POST –user $bamboo_userpass $bamboourl/rest/api/latest/result/$planbuild/label -d[…]