Skip to content

Commit

Permalink
Update UploadBuildOutput.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
sibille committed Apr 9, 2018
1 parent dd37128 commit 5ceb17d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _build/UploadBuildOutput.ps1
Expand Up @@ -2,13 +2,13 @@ param
(
[Parameter(Mandatory=$true)]
[string]$storageAccountName,
[Parameter(Mandatory=$true)]
[Parameter(Mandatory=$true)]
[string]$containerName,
[Parameter(Mandatory=$true)]
[Parameter(Mandatory=$true)]
[string]$sourceLocation,
[Parameter(Mandatory=$true)]
[Parameter(Mandatory=$true)]
[string]$storageAccountKey,
[Parameter(Mandatory=$true)]
[Parameter(Mandatory=$true)]
[string]$versionNumber
)

Expand All @@ -18,9 +18,9 @@ $files = Get-ChildItem $sourceLocation -rec | where {!$_.PSIsContainer}

foreach($file in $files)
{
$fileName = $file.FullName
$blobName = "v$versionNumber/$file"
write-host "copying $fileName to $blobName"
$fileName = $file.FullName
$blobName = "v$versionNumber/$file"
write-host "copying $fileName to $blobName"

Set-AzureStorageBlobContent -File $fileName -Container $containerName -Blob $blobName -Context $blobContext -Force
Set-AzureStorageBlobContent -File $fileName -Container $containerName -Blob $blobName -Context $blobContext -Force
}

0 comments on commit 5ceb17d

Please sign in to comment.