Skip to content

Commit

Permalink
Added a step to validate rest api spec location before release (#38332)
Browse files Browse the repository at this point in the history
* Added a step to validate rest api spec location before release

* Correct the artifactLocation parameter value

* Update archetype-java-release.yml

Added comment for the step.
  • Loading branch information
raych1 authored Jan 26, 2024
1 parent 8e29482 commit d1dd313
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ stages:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
# Verify both TypeSpec and swagger specification are from the main branch of Azure/azure-rest-api-specs repo.
- template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml
parameters:
PackageName: ${{artifact.name}}
ServiceDirectory: ${{parameters.ServiceDirectory}}
ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.groupId}}

# Only check compilation if this isn't an uber JAR release.
# Uber JARs are self-contained and a compilation failure during creating it would have prevented its creation.
Expand Down

0 comments on commit d1dd313

Please sign in to comment.