Create deployments from Atlassian Bamboo

Setting up Deployment Tracking on Bamboo is easy using a bit of PowerShell.

  1. Add a new Script Task and select Windows PowerShell in Interpreter.

  2. Select Inline in Script location and add the following PowerShell to Script body:

$ProgressPreference = "SilentlyContinue"

Write-Host $bamboo_buildNumber

$url = ""
$body = @{
  version = $Env:bamboo_buildNumber
  logId = "LOG_ID"
[Net.ServicePointManager]::SecurityProtocol = `
Invoke-RestMethod -Method Post -Uri $url -Body $body

PowerShell task in Bamboo

Replace API_KEY and LOG_ID and everything is configured. The script uses the build number of the current build as version number ($Env:bamboo_buildNumber). If you prefer another scheme, Bamboo offers a range of variables.

This article was brought to you by the team. is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening, and help you fix errors fast.

See how we can help you monitor your website for crashes Monitor your website