4
4
param (
5
5
$AzCopy ,
6
6
$DocLocation ,
7
- $SASKey ,
8
7
$BlobName ,
9
8
$ExitOnError = 1 ,
10
9
$UploadLatest = 1 ,
@@ -176,9 +175,9 @@ function Update-Existing-Versions
176
175
$sortedVersionObj.LatestGAPackage | Out-File - File " $ ( $DocLocation ) /latest-ga" - Force - NoNewLine
177
176
$sortedVersionObj.LatestPreviewPackage | Out-File - File " $ ( $DocLocation ) /latest-preview" - Force - NoNewLine
178
177
179
- & $ ($AzCopy ) cp " $ ( $DocLocation ) /versions" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/versions$ ( $SASKey ) " -- cache- control " max-age=300, must-revalidate"
180
- & $ ($AzCopy ) cp " $ ( $DocLocation ) /latest-preview" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/latest-preview$ ( $SASKey ) " -- cache- control " max-age=300, must-revalidate"
181
- & $ ($AzCopy ) cp " $ ( $DocLocation ) /latest-ga" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/latest-ga$ ( $SASKey ) " -- cache- control " max-age=300, must-revalidate"
178
+ & $ ($AzCopy ) cp " $ ( $DocLocation ) /versions" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/versions" -- cache- control " max-age=300, must-revalidate"
179
+ & $ ($AzCopy ) cp " $ ( $DocLocation ) /latest-preview" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/latest-preview" -- cache- control " max-age=300, must-revalidate"
180
+ & $ ($AzCopy ) cp " $ ( $DocLocation ) /latest-ga" " $ ( $DocDest ) /$ ( $PkgName ) /versioning/latest-ga" -- cache- control " max-age=300, must-revalidate"
182
181
return $sortedVersionObj
183
182
}
184
183
@@ -216,7 +215,7 @@ function Upload-Blobs
216
215
}
217
216
218
217
LogDebug " Uploading $ ( $PkgName ) /$ ( $DocVersion ) to $ ( $DocDest ) ..."
219
- & $ ($AzCopy ) cp " $ ( $DocDir ) /**" " $ ( $DocDest ) /$ ( $PkgName ) /$ ( $DocVersion ) $ ( $SASKey ) " -- recursive= true -- cache- control " max-age=300, must-revalidate"
218
+ & $ ($AzCopy ) cp " $ ( $DocDir ) /**" " $ ( $DocDest ) /$ ( $PkgName ) /$ ( $DocVersion ) " -- recursive= true -- cache- control " max-age=300, must-revalidate"
220
219
221
220
LogDebug " Handling versioning files under $ ( $DocDest ) /$ ( $PkgName ) /versioning/"
222
221
$versionsObj = (Update-Existing - Versions - PkgName $PkgName - PkgVersion $DocVersion - DocDest $DocDest )
@@ -229,7 +228,7 @@ function Upload-Blobs
229
228
if ($UploadLatest -and ($latestVersion -eq $DocVersion ))
230
229
{
231
230
LogDebug " Uploading $ ( $PkgName ) to latest folder in $ ( $DocDest ) ..."
232
- & $ ($AzCopy ) cp " $ ( $DocDir ) /**" " $ ( $DocDest ) /$ ( $PkgName ) /latest$ ( $SASKey ) " -- recursive= true -- cache- control " max-age=300, must-revalidate"
231
+ & $ ($AzCopy ) cp " $ ( $DocDir ) /**" " $ ( $DocDest ) /$ ( $PkgName ) /latest" -- recursive= true -- cache- control " max-age=300, must-revalidate"
233
232
}
234
233
}
235
234
0 commit comments