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
This commit is contained in:
Родитель
d368d4a53e
Коммит
e015277369
|
@ -195,7 +195,12 @@ stages:
|
|||
- checkout: self
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}
|
||||
if (Test-Path "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}") {
|
||||
Get-ChildItem -Recurse "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}"
|
||||
}
|
||||
else {
|
||||
New-Item -ItemType Directory -Force -Path "$(Pipeline.Workspace)/${{parameters.DocArtifact}}/${{artifact.name}}"
|
||||
}
|
||||
workingDirectory: $(Pipeline.Workspace)
|
||||
displayName: Output Visible Artifacts
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче