Created
September 17, 2014 14:50
-
-
Save rantoniuk/1c72afc41e63f3dc2511 to your computer and use it in GitHub Desktop.
Bamboo/Powershell integration - copying artifact to a dated/versioned directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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