-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ steps: | |
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/Publish-MavenPackages.ps1 | ||
arguments: > | ||
-ArtifactDirectory ${{ parameters.ArtifactDirectory }} | ||
-GroupIDFilter ${{ parameters.GroupID }} | ||
-ArtifactIDFilter ${{ parameters.ArtifactID }} | ||
-GroupIDFilter "${{ parameters.GroupID }}" | ||
-ArtifactIDFilter "${{ parameters.ArtifactID }}" | ||
-RepositoryUrl https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-$(Build.BuildID)/maven/v1 | ||
-RepositoryUsername nobody | ||
-RepositoryPassword $(System.AccessToken) | ||
|
@@ -37,8 +37,8 @@ steps: | |
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/Publish-MavenPackages.ps1 | ||
arguments: > | ||
-ArtifactDirectory ${{ parameters.ArtifactDirectory }} | ||
-GroupIDFilter ${{ parameters.GroupID }} | ||
-ArtifactIDFilter ${{ parameters.ArtifactID }} | ||
-GroupIDFilter "${{ parameters.GroupID }}" | ||
-ArtifactIDFilter "${{ parameters.ArtifactID }}" | ||
-RepositoryUrl ${{ parameters.RepositoryUrl }} | ||
-RepositoryUsername nobody | ||
-RepositoryPassword $(System.AccessToken) | ||
|
@@ -55,34 +55,15 @@ steps: | |
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/Publish-MavenPackages.ps1 | ||
arguments: > | ||
-ArtifactDirectory ${{ parameters.ArtifactDirectory }} | ||
-GroupIDFilter ${{ parameters.GroupID }} | ||
-ArtifactIDFilter ${{ parameters.ArtifactID }} | ||
-GroupIDFilter "${{ parameters.GroupID }}" | ||
-ArtifactIDFilter "${{ parameters.ArtifactID }}" | ||
-RepositoryUrl https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-android/maven/v1 | ||
-RepositoryUsername nobody | ||
-RepositoryPassword $(System.AccessToken) | ||
-GPGExecutablePath ${{ parameters.GPGExecutablePath }} | ||
-ShouldPublish:$${{parameters.ShouldPublish}} | ||
-InformationAction Continue | ||
- ${{if eq(parameters.Target, 'MavenCentral')}}: | ||
- task: PowerShell@2 | ||
displayName: 'Publish to Maven Central' | ||
inputs: | ||
pwsh: true | ||
workingDirectory: $(Agent.BuildDirectory) | ||
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/Publish-MavenPackages.ps1 | ||
arguments: > | ||
-ArtifactDirectory ${{ parameters.ArtifactDirectory }} | ||
-GroupIDFilter "${{ parameters.GroupID }}" | ||
-ArtifactIDFilter "${{ parameters.ArtifactID }}" | ||
-RepositoryUrl https://oss.sonatype.org/service/local/staging/deploy/maven2/ | ||
-RepositoryUsername azuresdk | ||
-RepositoryPassword $(azuresdk-sonatype-password) | ||
-GPGExecutablePath ${{ parameters.GPGExecutablePath }} | ||
-StageOnly:$${{parameters.StageOnly}} | ||
-ShouldPublish:$${{parameters.ShouldPublish}} | ||
-InformationAction Continue | ||
- ${{if eq(parameters.Target, 'EsrpRelease')}}: | ||
- task: PowerShell@2 | ||
displayName: 'Gpg sign and hash packages' | ||
|
@@ -110,4 +91,20 @@ steps: | |
ServiceEndpointUrl: 'https://api.esrp.microsoft.com' | ||
MainPublisher: 'ESRPRELPACMANTEST' | ||
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47' | ||
# - task: EsrpRelease@7 | ||
# displayName: 'Publish to ESRP' | ||
# inputs: | ||
# ConnectedServiceName: 'Azure SDK Engineering System' | ||
# ClientId: '5f81938c-2544-4f1f-9251-dd9de5b8a81b' | ||
# KeyVaultName: 'AzureSDKEngKeyVault' | ||
# AuthCertName: 'azure-sdk-esrp-release-auth-certificate' | ||
# SignCertName: 'azure-sdk-esrp-release-sign-certificate' | ||
# Intent: 'PackageDistribution' | ||
# ContentType: 'Maven' | ||
# PackageLocation: $(PackageLocation) | ||
# Owners: $(Build.RequestedForEmail) | ||
# Approvers: '[email protected]' | ||
# ServiceEndpointUrl: 'https://api.esrp.microsoft.com' | ||
# MainPublisher: 'ESRPRELPACMANTEST' | ||
# DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.