Skip to content

Commit

Permalink
fix not return issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu committed Dec 2, 2021
1 parent 1dc8f78 commit 54d22ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions eng/common/scripts/Update-DocsMsMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ foreach ($packageInfoLocation in $PackageInfoJsonLocations) {
&$ValidateDocsMsPackagesFn -PackageInfo $packageInfo $PackageSourceOverride $DocValidationImageId
if ($LASTEXITCODE -ne 0) {
LogError "The package failed Doc.Ms validation. Please fixed the doc and republish to Doc.Ms."
exit 1
}
}
UpdateDocsMsMetadataForPackage $packageInfoLocation $packageInfo
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
inputs:
pwsh: true
filePath: eng/common/scripts/Update-DocsMsPackages.ps1
arguments: -DocRepoLocation $(DocRepoLocation) -PackageSourceOverride "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/" -ImageId '$(DocValidationImageId)'
arguments: -DocRepoLocation $(DocRepoLocation) -PackageSourceOverride "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
displayName: Update Docs Onboarding for Daily branch
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
parameters:
Expand Down
7 changes: 6 additions & 1 deletion eng/pipelines/templates/stages/archetype-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ parameters:
DevFeedName: 'public/azure-sdk-for-python'
TargetDocRepoOwner: ''
TargetDocRepoName: ''
PackageSourceOverride: "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
DocValidationImageId: "azuresdkimages.azurecr.io/pyrefautocr:latest"

stages:
- ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}:
Expand Down Expand Up @@ -175,7 +177,8 @@ stages:
SparseCheckoutPaths:
- docs-ref-services/
- metadata/

PackageSourceOverride: ${{parameters.PackageSourceOverride}}
DocValidationImageId: ${{parameters.DocValidationImageId}}
- ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}:
- deployment: UpdatePackageVersion
displayName: "Update Package Version"
Expand Down Expand Up @@ -291,3 +294,5 @@ stages:
SparseCheckoutPaths:
- docs-ref-services/
- metadata/
PackageSourceOverride: ${{parameters.PackageSourceOverride}}
DocValidationImageId: ${{parameters.DocValidationImageId}}

0 comments on commit 54d22ab

Please sign in to comment.