Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added spec location verification to the release pipeline #22301

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions eng/pipelines/templates/jobs/archetype-go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ stages:
deploy:
steps:
- checkout: self
- download: current
artifact: 'PackageInfo'
- template: /eng/common/pipelines/templates/steps/retain-run.yml
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
Expand All @@ -64,6 +66,14 @@ stages:
${{ else }}:
PackageName: 'sdk/${{parameters.ServiceDirectory}}'
ForRelease: true
- template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml
parameters:
${{ if startsWith(parameters.ServiceDirectory, '../') }}:
PackageName: "${{replace(parameters.ServiceDirectory, '../', '')}}"
${{ else }}:
PackageName: 'sdk/${{parameters.ServiceDirectory}}'
ServiceDirectory: ${{parameters.ServiceDirectory}}
ArtifactLocation: $(Pipeline.Workspace)
- task: PowerShell@2
displayName: 'Verify no replace directives in go.mod file'
inputs:
Expand Down
7 changes: 6 additions & 1 deletion eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ steps:
workingDirectory: $(Pipeline.Workspace)
displayName: Dump Package properties
condition: and(succeeded(), ${{ parameters.IsSdkLibrary }})

- task: PublishPipelineArtifact@1
condition: and(succeeded(), ${{ parameters.IsSdkLibrary }})
displayName: 'Publish PackageInfo Artifacts'
inputs:
artifactName: 'PackageInfo'
path: $(Build.ArtifactStagingDirectory)/PackageInfo
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml

- task: Powershell@2
Expand Down