Skip to content

Commit

Permalink
Add Support to Skip Version Verification when Releasing an Uber JAR (A…
Browse files Browse the repository at this point in the history
…zure#26837)

Add Support to Skip Version Verification when Releasing an Uber JAR
  • Loading branch information
alzimmermsft authored Feb 10, 2022
1 parent 92b056f commit 4776207
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 14 additions & 6 deletions eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,26 @@ stages:
- pwsh: |
$(Build.SourcesDirectory)/eng/versioning/scan_for_unreleased_dependencies.ps1 ${{artifact.groupId}} ${{artifact.name}} $(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}
displayName: "Verify no unreleased dependencies"
# Uber JARs release a flattened POM, as dependencies are incorporated into the JAR circumnavigating the
# need to list dependencies in the POM. The flattened POM is generated and won't comply with our
# versioning validation, so skip it.
condition: and(succeeded(), ne('${{ artifact.uberJar }}', 'true'))
- ${{if ne(parameters.SDKType, 'data')}}:
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- template: /eng/pipelines/templates/steps/compilation.check.yml
parameters:
Artifact: ${{ artifact }}
ArtifactName: ${{ parameters.ArtifactName }}
ArtifactDirectory: "$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.groupId}}/${{artifact.name}}"

# 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.
- ${{ if ne(artifact.uberJar, 'true') }}:
- template: /eng/pipelines/templates/steps/compilation.check.yml
parameters:
Artifact: ${{ artifact }}
ArtifactName: ${{ parameters.ArtifactName }}
ArtifactDirectory: "$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.groupId}}/${{artifact.name}}"

- deployment: TagRepository
displayName: "Create release tag"
Expand Down Expand Up @@ -298,7 +306,7 @@ stages:
deploy:
steps:
- download: none

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Paths:
Expand Down
2 changes: 2 additions & 0 deletions sdk/cosmos/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ extends:
- name: azure-cosmos-spark_3-1_2-12
groupId: com.azure.cosmos.spark
safeName: azurecosmosspark31
uberJar: true
- name: azure-cosmos-spark_3-2_2-12
groupId: com.azure.cosmos.spark
safeName: azurecosmosspark32
uberJar: true
AdditionalModules:
- name: azure-cosmos-benchmark
groupId: com.azure
Expand Down

0 comments on commit 4776207

Please sign in to comment.