-
Notifications
You must be signed in to change notification settings - Fork 98
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
9 changed files
with
275 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"en-gb" | ||
], | ||
"ignorePaths": [ | ||
"eng/common/**", | ||
"eng/**", | ||
".vscode/cspell.json" | ||
], | ||
"words": [ | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
parameters: | ||
ArtifactDirectory: not-specified | ||
OutputDirectory: not-specified | ||
FlattenedESRPDirectory: not-specified | ||
GroupID: | ||
ArtifactID: | ||
GPGExecutablePath: $(Pipeline.Workspace)/azure-sdk-build-tools/tools/gpg/bin/gpg.exe | ||
JavaRepoRoot: $(Pipeline.Workspace)/azure-sdk-for-java | ||
|
||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Gpg sign and hash packages' | ||
inputs: | ||
pwsh: true | ||
workingDirectory: $(Agent.BuildDirectory) | ||
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/SignAndHash-MavenPackages.ps1 | ||
arguments: > | ||
-Path ${{ parameters.ArtifactDirectory }} | ||
-DestinationPath ${{ parameters.OutputDirectory }} | ||
-GroupIDFilter "${{ parameters.GroupID }}" | ||
-ArtifactIDFilter "${{ parameters.ArtifactID }}" | ||
-GPGExecutablePath ${{ parameters.GPGExecutablePath }} | ||
-InformationAction Continue | ||
# ESRP needs to have the output folder flattened in order to do a bulk publish | ||
# The flattened folder is only used by ESRP | ||
- task: PowerShell@2 | ||
displayName: 'Flatten output folder for ESRP' | ||
inputs: | ||
pwsh: true | ||
workingDirectory: $(Agent.BuildDirectory) | ||
filePath: ${{ parameters.JavaRepoRoot }}/eng/scripts/Flatten-MavenPackageFolder.ps1 | ||
arguments: > | ||
-SignedDirectory ${{ parameters.OutputDirectory }} | ||
-FlattenedDirectory ${{ parameters.FlattenedESRPDirectory }} | ||
-InformationAction Continue |
46 changes: 46 additions & 0 deletions
46
eng/pipelines/templates/steps/java-dev-feed-publishing.yml
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
parameters: | ||
ArtifactDirectory: not-specified | ||
OutputDirectory: not-specified | ||
RepositoryUrl: not-specified | ||
GroupID: | ||
ArtifactID: | ||
GPGExecutablePath: $(Pipeline.Workspace)/azure-sdk-build-tools/tools/gpg/bin/gpg.exe | ||
JavaRepoRoot: $(Pipeline.Workspace)/azure-sdk-for-java | ||
ShouldPublish: true | ||
|
||
steps: | ||
- ${{if eq(parameters.Target, 'JavaDevFeed')}}: | ||
- task: PowerShell@2 | ||
displayName: 'Publish to Java Dev Feed' | ||
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 ${{ parameters.RepositoryUrl }} | ||
-RepositoryUsername nobody | ||
-RepositoryPassword $(System.AccessToken) | ||
-GPGExecutablePath ${{ parameters.GPGExecutablePath }} | ||
-ShouldPublish:$${{parameters.ShouldPublish}} | ||
-InformationAction Continue | ||
- ${{if eq(parameters.Target, 'AndroidDevFeed')}}: | ||
- task: PowerShell@2 | ||
displayName: 'Publish to Android Public Dev Feed' | ||
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://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 |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
parameters: | ||
# This is the flattened | ||
FlattenedDirectory: not-specified | ||
ShouldPublish: true | ||
|
||
steps: | ||
- ${{if eq(parameters.ShouldPublish, 'true')}}: | ||
- task: EsrpRelease@9 | ||
displayName: 'Publish to ESRP' | ||
inputs: | ||
ConnectedServiceName: Azure SDK PME Managed Identity | ||
Usemanagedidentity: true | ||
DomainTenantId: 975f013f-7f24-47e8-a7d3-abc4752bf346 | ||
ClientId: 5f81938c-2544-4f1f-9251-dd9de5b8a81b | ||
KeyVaultName: kv-azuresdk-codesign | ||
SignCertName: azure-sdk-esrp-release-certificate | ||
Intent: 'PackageDistribution' | ||
ContentType: 'Maven' | ||
FolderLocation: ${{ parameters.FlattenedDirectory }} | ||
Owners: ${{ coalesce(variables['Build.RequestedForEmail'], '[email protected]') }} | ||
Approvers: ${{ coalesce(variables['Build.RequestedForEmail'], '[email protected]') }} | ||
ServiceEndpointUrl: 'https://api.esrp.microsoft.com' | ||
MainPublisher: 'ESRPRELPACMANTEST' |
Oops, something went wrong.