Skip to content

Commit 94bb08e

Browse files
authored
Switch to pulling doc tools from storage instead of github (Azure#36427)
1 parent 11b6dc8 commit 94bb08e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

eng/pipelines/templates/steps/archetype-sdk-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ steps:
33
# Download and Extract or restore Packages required for Doc Generation
44
Write-Host "Download and Extract mdoc to Build.BinariesDirectory/mdoc"
55
try {
6-
Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://github.com/mono/api-doc-tools/releases/download/mdoc-5.7.4.9/mdoc-5.7.4.9.zip" `
6+
# Currently having issues downloading from github on windows 2022 so moved to a blob account
7+
# https://github.com/mono/api-doc-tools/releases/download/mdoc-5.7.4.9/mdoc-5.7.4.9.zip
8+
Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://azuresdkdocs.blob.core.windows.net/tools/mdoc/5.7.4.9/mdoc-5.7.4.9.zip" `
79
-OutFile "mdoc.zip" | Wait-Process; Expand-Archive -Path "mdoc.zip" -DestinationPath "./mdoc/"
810
} catch {
911
$_.Exception | Format-List | Out-Host
@@ -12,7 +14,9 @@ steps:
1214
1315
Write-Host "Download and Extract docfx to Build.BinariesDirectory/docfx"
1416
try {
15-
Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://github.com/dotnet/docfx/releases/download/$(DocFxVersion)/docfx.zip" `
17+
# Currently having issues downloading from github on windows 2022 so moved to a blob account
18+
# https://github.com/dotnet/docfx/releases/download/$(DocFxVersion)/docfx.zip
19+
Invoke-WebRequest -MaximumRetryCount 10 -Uri "https://azuresdkdocs.blob.core.windows.net/tools/docfx/$(DocFxVersion)/docfx.zip" `
1620
-OutFile "docfx.zip" | Wait-Process; Expand-Archive -Path "docfx.zip" -DestinationPath "./docfx/"
1721
} catch {
1822
$_.Exception | Format-List | Out-Host
@@ -39,4 +43,4 @@ steps:
3943
-BinDirectory $(Build.BinariesDirectory)
4044
-DocGenDir ${{parameters.DocGenerationDir}}
4145
-ArtifactStagingDirectory '$(Build.ArtifactStagingDirectory)'
42-
-verbose
46+
-verbose

0 commit comments

Comments
 (0)