2020-04-21 01:55:01 +03:00
|
|
|
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
|
2022-03-03 22:26:08 +03:00
|
|
|
Packaging.EnableSBOMSigning: true
|
2020-04-21 01:55:01 +03:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage:
|
|
|
|
displayName: Publish
|
|
|
|
jobs:
|
|
|
|
- job:
|
|
|
|
pool:
|
2024-05-29 18:51:30 +03:00
|
|
|
name: 'OneES'
|
2020-04-21 01:55:01 +03:00
|
|
|
|
|
|
|
steps:
|
2024-10-09 23:30:21 +03:00
|
|
|
# Add this Command to Include the .NET SDK and runtimes
|
2022-01-19 22:29:59 +03:00
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: Use .NET 6.0
|
|
|
|
inputs:
|
2024-10-09 23:30:21 +03:00
|
|
|
packageType: 'runtime'
|
2022-01-19 22:29:59 +03:00
|
|
|
version: '6.x'
|
2024-10-09 23:30:21 +03:00
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: Use .NET 8.0
|
|
|
|
inputs:
|
|
|
|
packageType: 'sdk'
|
|
|
|
version: '8.x'
|
2022-01-19 22:29:59 +03:00
|
|
|
|
2020-04-21 01:55:01 +03:00
|
|
|
- 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 $(BuildConfiguration) -p:Optimize=true
|
|
|
|
versioningScheme: OFF
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: 'Create Encryption SDK NuGet Package'
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
projects: 'Microsoft.Azure.Cosmos.Encryption\src\Microsoft.Azure.Cosmos.Encryption.csproj'
|
|
|
|
custom: pack
|
|
|
|
arguments: '-v detailed -c $(BuildConfiguration) --no-build --no-restore -o "$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos.Encryption"'
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: 'Create Encryption SDK NuGet Symbols Package'
|
|
|
|
inputs:
|
|
|
|
command: custom
|
|
|
|
projects: 'Microsoft.Azure.Cosmos.Encryption\src\Microsoft.Azure.Cosmos.Encryption.csproj'
|
|
|
|
custom: pack
|
|
|
|
arguments: '-v detailed -c $(BuildConfiguration) --no-build --include-symbols /p:SymbolPackageFormat=snupkg --no-restore -o "$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos.Encryption"'
|
|
|
|
|
2022-03-03 22:26:08 +03:00
|
|
|
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
|
|
|
|
inputs:
|
|
|
|
BuildDropPath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption'
|
|
|
|
|
2020-04-21 01:55:01 +03:00
|
|
|
- task: AzureFileCopy@2
|
|
|
|
displayName: ' Copy Artifacts to Azure SDK Release blob storage'
|
|
|
|
condition: and(succeeded(),ne(variables['BlobVersion'], ''))
|
|
|
|
inputs:
|
|
|
|
SourcePath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos.Encryption'
|
|
|
|
azureSubscription: azuresdkpartnerdrops
|
|
|
|
Destination: AzureBlob
|
|
|
|
storage: azuresdkpartnerdrops
|
|
|
|
ContainerName: 'drops'
|
|
|
|
BlobPrefix: 'cosmosdb/csharp/encryption/$(BlobVersion)'
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos.Encryption'
|
|
|
|
inputs:
|
|
|
|
artifactName: Microsoft.Azure.Cosmos.Encryption
|
|
|
|
#
|