-
Notifications
You must be signed in to change notification settings - Fork 524
Client Encryption: Fixes Encryption Release Pipeline #5234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
microsoft-github-policy-service
merged 8 commits into
master
from
users/dkunda/fix_encryption_pipelines
Jun 6, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1e4e705
Code changes to fix encryption pipeline
kundadebdatta 8349c0b
Code changes to fix title and gates.
kundadebdatta d0dfbbc
Code changes to update static tools.
kundadebdatta c0005dc
Code changes to add encryption custom pipeline.
kundadebdatta 0c81f2c
Fixed custom pipeline
kundadebdatta b803e97
Merge branch 'master' into users/dkunda/fix_encryption_pipelines
kundadebdatta c76ebfa
Code changes to address review comments.
kundadebdatta 7cec98c
Merge branch 'master' into users/dkunda/fix_encryption_pipelines
kundadebdatta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,29 @@ | ||
| trigger: none | ||
|
|
||
| pr: none | ||
|
|
||
| variables: | ||
| ReleaseArguments: ' --filter "TestCategory!=Quarantine" --verbosity normal ' | ||
| VmImage: windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops | ||
| BuildConfiguration: Release | ||
| Packaging.EnableSBOMSigning: true | ||
|
|
||
| stages: | ||
| - stage: | ||
| displayName: Encryption Custom Release Gates | ||
| jobs: | ||
| - template: templates/static-tools-encryption-custom.yml | ||
| parameters: | ||
| BuildConfiguration: '${{ variables.BuildConfiguration }}' | ||
| VmImage: '${{ variables.VmImage }}' | ||
|
|
||
| - stage: | ||
| displayName: Build, Pack and Publish | ||
| jobs: | ||
| - template: templates/encryption-custom-nuget-pack.yml | ||
| parameters: | ||
| BuildConfiguration: Release | ||
| VmImage: '${{ variables.VmImage }}' | ||
| ReleasePackage: true | ||
| OutputPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption.Custom' | ||
| BlobVersion: $(BlobVersion) |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,29 @@ | ||
| trigger: none | ||
|
|
||
| pr: none | ||
|
|
||
| variables: | ||
| ReleaseArguments: ' --filter "TestCategory!=Quarantine" --verbosity normal ' | ||
| VmImage: windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops | ||
| BuildConfiguration: Release | ||
| Packaging.EnableSBOMSigning: true | ||
|
|
||
| stages: | ||
| - stage: | ||
| displayName: Encryption Release Gates | ||
| jobs: | ||
| - template: templates/static-tools-encryption.yml | ||
| parameters: | ||
| BuildConfiguration: '${{ variables.BuildConfiguration }}' | ||
| VmImage: '${{ variables.VmImage }}' | ||
|
|
||
| - stage: | ||
| displayName: Build, Pack and Publish | ||
| jobs: | ||
| - template: templates/encryption-nuget-pack.yml | ||
| parameters: | ||
| BuildConfiguration: Release | ||
| VmImage: '${{ variables.VmImage }}' | ||
| ReleasePackage: true | ||
| OutputPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption' | ||
| BlobVersion: $(BlobVersion) |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,79 @@ | ||
| # File: templates/encryption-nuget-pack.yml | ||
|
|
||
| parameters: | ||
| - name: BuildConfiguration | ||
| type: string | ||
| default: '' | ||
| - name: Arguments | ||
| type: string | ||
| default: '' | ||
| - name: VmImage | ||
| type: string | ||
| default: '' | ||
| - name: OutputPath | ||
| type: string | ||
| default: '' | ||
| - name: BlobVersion | ||
| type: string | ||
| default: '' | ||
| - name: ReleasePackage | ||
| type: boolean | ||
| default: false | ||
| - name: CleanupFolder | ||
| type: boolean | ||
| default: false | ||
|
|
||
| jobs: | ||
| - job: GenerateNugetPackages | ||
| displayName: Generate Nuget packages | ||
| pool: | ||
| name: 'OneES' | ||
|
|
||
| steps: | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: Build Microsoft.Azure.Cosmos.Encryption.Custom | ||
| inputs: | ||
| command: build | ||
| configuration: $(BuildConfiguration) | ||
| nugetConfigPath: NuGet.config | ||
| projects: Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj | ||
| arguments: --configuration ${{ parameters.BuildConfiguration }} -p:Optimize=true ${{ parameters.Arguments }} | ||
| versioningScheme: OFF | ||
|
|
||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Create Encryption Custom NuGet Package' | ||
| inputs: | ||
| command: custom | ||
| projects: 'Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj' | ||
| custom: pack | ||
| arguments: '-v detailed -c ${{ parameters.BuildConfiguration }} --no-build ${{ parameters.Arguments }} --no-restore -o "${{ parameters.OutputPath }}"' | ||
|
|
||
| - ${{ if eq(parameters.ReleasePackage, true) }}: | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Create Encryption Custom NuGet Symbols Package' | ||
| inputs: | ||
| command: custom | ||
| projects: 'Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj' | ||
| custom: pack | ||
| arguments: '-v detailed -c ${{ parameters.BuildConfiguration }} --no-build --include-symbols /p:SymbolPackageFormat=snupkg ${{ parameters.Arguments }} --no-restore -o "${{ parameters.OutputPath }}"' | ||
| - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 | ||
| inputs: | ||
| BuildDropPath: '$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos.Encryption.Custom' | ||
|
|
||
| - ${{ if ne(parameters.BlobVersion, '') }}: | ||
| - task: AzureFileCopy@6 | ||
| displayName: 'Copy Artifacts to Azure SDK Release blob storage' | ||
| condition: succeeded() | ||
| inputs: | ||
| SourcePath: '$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos.Encryption.Custom/**' | ||
| azureSubscription: azuresdkpartnerdrops | ||
| Destination: AzureBlob | ||
| storage: azuresdkpartnerdrops | ||
| ContainerName: 'drops' | ||
| BlobPrefix: 'cosmosdb/csharp/encryption.custom/$(BlobVersion)' | ||
| CleanTargetBeforeCopy: ${{ parameters.CleanupFolder }} | ||
|
|
||
| - task: PublishBuildArtifacts@1 | ||
| displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos.Encryption.Custom' | ||
| inputs: | ||
| artifactName: Microsoft.Azure.Cosmos.Encryption.Custom |
This file contains hidden or 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,79 @@ | ||
| # File: templates/encryption-nuget-pack.yml | ||
|
|
||
| parameters: | ||
| - name: BuildConfiguration | ||
| type: string | ||
| default: '' | ||
| - name: Arguments | ||
| type: string | ||
| default: '' | ||
| - name: VmImage | ||
| type: string | ||
| default: '' | ||
| - name: OutputPath | ||
| type: string | ||
| default: '' | ||
| - name: BlobVersion | ||
| type: string | ||
| default: '' | ||
| - name: ReleasePackage | ||
| type: boolean | ||
| default: false | ||
| - name: CleanupFolder | ||
| type: boolean | ||
| default: false | ||
|
|
||
| jobs: | ||
| - job: GenerateNugetPackages | ||
| displayName: Generate Nuget packages | ||
| pool: | ||
| name: 'OneES' | ||
|
|
||
| steps: | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: Build Microsoft.Azure.Cosmos.Encryption | ||
| inputs: | ||
| command: build | ||
| configuration: $(BuildConfiguration) | ||
| nugetConfigPath: NuGet.config | ||
| projects: Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj | ||
| arguments: --configuration ${{ parameters.BuildConfiguration }} -p:Optimize=true ${{ parameters.Arguments }} | ||
| versioningScheme: OFF | ||
|
|
||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Create Encryption NuGet Package' | ||
| inputs: | ||
| command: custom | ||
| projects: 'Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj' | ||
| custom: pack | ||
| arguments: '-v detailed -c ${{ parameters.BuildConfiguration }} --no-build ${{ parameters.Arguments }} --no-restore -o "${{ parameters.OutputPath }}"' | ||
|
|
||
| - ${{ if eq(parameters.ReleasePackage, true) }}: | ||
| - task: DotNetCoreCLI@2 | ||
| displayName: 'Create Encryption NuGet Symbols Package' | ||
| inputs: | ||
| command: custom | ||
| projects: 'Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj' | ||
| custom: pack | ||
| arguments: '-v detailed -c ${{ parameters.BuildConfiguration }} --no-build --include-symbols /p:SymbolPackageFormat=snupkg ${{ parameters.Arguments }} --no-restore -o "${{ parameters.OutputPath }}"' | ||
| - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 | ||
| inputs: | ||
| BuildDropPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption' | ||
|
|
||
| - ${{ if ne(parameters.BlobVersion, '') }}: | ||
| - task: AzureFileCopy@6 | ||
| displayName: 'Copy Artifacts to Azure SDK Release blob storage' | ||
| condition: succeeded() | ||
| inputs: | ||
| SourcePath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption/**' | ||
| azureSubscription: azuresdkpartnerdrops | ||
| Destination: AzureBlob | ||
| storage: azuresdkpartnerdrops | ||
| ContainerName: 'drops' | ||
| BlobPrefix: 'cosmosdb/csharp/encryption/$(BlobVersion)' | ||
| CleanTargetBeforeCopy: ${{ parameters.CleanupFolder }} | ||
|
|
||
| - task: PublishBuildArtifacts@1 | ||
| displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos.Encryption' | ||
| inputs: | ||
| artifactName: Microsoft.Azure.Cosmos.Encryption | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.