Skip to content

Instantly share code, notes, and snippets.

@rantoniuk
Created September 17, 2014 14:50
Show Gist options
  • Save rantoniuk/1c72afc41e63f3dc2511 to your computer and use it in GitHub Desktop.
Save rantoniuk/1c72afc41e63f3dc2511 to your computer and use it in GitHub Desktop.
Bamboo/Powershell integration - copying artifact to a dated/versioned directory
$TODAY=(Get-Date).ToString('yyyy-MM-dd')
$VERSION=(dir Product.exe).VersionInfo.ProductVersion
$DIR="X:\Deployment\Product\$VERSION-$TODAY-${bamboo.deploy.release}\"
Write-Host "Saving artifacts to $DIR"
New-Item -itemtype directory $DIR
Copy-Item * $DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment