Skip to content

Commit e015277

Browse files
authored
Handle final release of inactive package's docs (#37038)
* in the case of a final release, this folder path will not exist. upload blobs should also gracefully handle this
1 parent d368d4a commit e015277

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eng/pipelines/templates/stages/archetype-python-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ stages:
195195
- checkout: self
196196

197197
- pwsh: |
198-
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}
198+
if (Test-Path "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}") {
199+
Get-ChildItem -Recurse "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}"
200+
}
201+
else {
202+
New-Item -ItemType Directory -Force -Path "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}"
203+
}
199204
workingDirectory: $(Pipeline.Workspace)
200205
displayName: Output Visible Artifacts
201206

0 commit comments

Comments
 (0)