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.

(cherry picked from commit d1dd313)
  • Loading branch information
raych1 authored and Netyyyy committed Feb 2, 2024
1 parent 4618ff5 commit ba5d567
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 ba5d567

Please sign in to comment.