Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from CloudCopy --> AzCopy #819

Merged
merged 4 commits into from
Apr 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ let configuration = "Release"
let nugetTitleSuffix = " - BETA"
let toolDir = "tools"
let CloudCopyDir = toolDir @@ "CloudCopy"
let AzCopyDir = toolDir @@ "AzCopy"

// Read release notes and version

Expand Down Expand Up @@ -124,18 +125,18 @@ Target "AzureDocsDeploy" (fun _ ->
let rec pushToAzure docDir azureUrl container azureAccount azureKey trialsLeft =
let tracing = enableProcessTracing
enableProcessTracing <- false
let arguments = sprintf "%s\* %s DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s -Z" (Path.GetFullPath docDir) (azureUrl @@ container) azureAccount azureKey
let arguments = sprintf "/Source:%s /Dest:%s /DestKey:%s /S" (Path.GetFullPath docDir) (azureUrl @@ container) azureKey
tracefn "Pushing docs to %s. Attempts left: %d" (azureUrl) trialsLeft
try

let result = ExecProcess(fun info ->
info.FileName <- CloudCopyDir @@ "CloudCopy.exe"
info.FileName <- AzCopyDir @@ "AzCopy.exe"
info.Arguments <- arguments) (TimeSpan.FromMinutes 120.0) //takes a very long time to upload
if result <> 0 then failwithf "Error during CloudCopy.exe upload to azure."
if result <> 0 then failwithf "Error during AzCopy.exe upload to azure."
with exn ->
if (trialsLeft > 0) then (pushToAzure docDir azureUrl container azureAccount azureKey (trialsLeft-1))
else raise exn
let canPush = hasBuildParam "azureKey" && hasBuildParam "azureAccount" && hasBuildParam "azureUrl" && hasBuildParam "azureKey"
let canPush = hasBuildParam "azureKey" && hasBuildParam "azureUrl"
if (canPush) then
printfn "Uploading API docs to Azure..."
let azureUrl = getBuildParam "azureUrl"
Expand Down
Binary file added tools/AzCopy/AzCopy.exe
Binary file not shown.
793 changes: 793 additions & 0 deletions tools/AzCopy/License (Microsoft Azure Storage Tools).rtf

Large diffs are not rendered by default.

Binary file added tools/AzCopy/Microsoft.Data.Edm.dll
Binary file not shown.
Binary file added tools/AzCopy/Microsoft.Data.OData.dll
Binary file not shown.
Binary file added tools/AzCopy/Microsoft.Data.Services.Client.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added tools/AzCopy/Microsoft.WindowsAzure.Storage.dll
Binary file not shown.
Binary file added tools/AzCopy/Newtonsoft.Json.dll
Binary file not shown.
Binary file added tools/AzCopy/System.Spatial.dll
Binary file not shown.
Binary file not shown.