2019-10-01 03:20:36 +03:00
trigger : none
pr : none
variables :
ReleaseArguments : ' --filter "TestCategory!=Quarantine" --verbosity normal '
2019-10-31 23:52:37 +03:00
BuildConfiguration : Release
2022-03-03 22:26:08 +03:00
Packaging.EnableSBOMSigning : true
2023-10-23 21:51:57 +03:00
VmImage : windows-latest # https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
2019-10-01 03:20:36 +03:00
stages :
- stage :
displayName : Gate
jobs :
- template : templates/static-tools.yml
parameters :
2023-10-23 21:51:57 +03:00
BuildConfiguration : '${{ variables.BuildConfiguration }}'
VmImage : '${{ variables.VmImage }}'
2019-10-01 03:20:36 +03:00
- template : templates/build-test.yml
parameters :
2023-10-23 21:51:57 +03:00
BuildConfiguration : '${{ variables.BuildConfiguration }}'
Arguments : '${{ variables.ReleaseArguments }}'
VmImage : '${{ variables.VmImage }}'
2024-04-10 22:51:11 +03:00
MultiRegionConnectionString : $(COSMOSDB_MULTI_REGION)
2023-08-22 13:56:27 +03:00
- job :
2023-10-23 21:51:57 +03:00
displayName : TelemetryToService ${{ variables.BuildConfiguration }}
2023-08-22 13:56:27 +03:00
timeoutInMinutes : 120
pool :
2024-05-29 18:51:30 +03:00
name : 'OneES'
2023-08-22 13:56:27 +03:00
steps :
- checkout : self # self represents the repo where the initial Pipelines YAML file was found
clean : true # if true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching
# Add this Command to Include the .NET 6 SDK
- task : UseDotNet@2
displayName : Use .NET 6.0
inputs :
packageType : 'sdk'
version : '6.x'
- task : DotNetCoreCLI@2
displayName : Integration Test With Client Telemetry Service
condition : succeeded()
inputs :
command : test
projects : 'Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/*.csproj'
2024-06-12 17:17:27 +03:00
arguments : --filter "TestCategory=ClientTelemetryRelease & TestCategory!=Quarantine" --verbosity normal --configuration ${{ variables.BuildConfiguration }} /p:OS=Windows
2023-08-22 13:56:27 +03:00
nugetConfigPath : NuGet.config
publishTestResults : true
testRunTitle : Microsoft.Azure.Cosmos.EmulatorTests
env :
COSMOSDB_ACCOUNT_CONNECTION_STRING : $(COSMOSDB_ACCOUNT_CONNECTION_STRING) # Real Account Connection String used by Integration Tests while running as part of release pipeline
2023-10-19 14:35:15 +03:00
CLIENT_TELEMETRY_SERVICE_ENDPOINT : $(CLIENT_TELEMETRY_SERVICE_ENDPOINT) # Client telemetry service url returned by configured account client config API
2019-10-01 03:20:36 +03:00
- stage :
displayName : Publish
jobs :
2022-07-07 19:19:08 +03:00
- template : templates/nuget-pack.yml
parameters :
2023-10-18 21:03:21 +03:00
BuildConfiguration : Release
2023-10-23 21:51:57 +03:00
VmImage : '${{ variables.VmImage }}'
2023-10-18 21:03:21 +03:00
ReleasePackage : true
2023-10-23 21:51:57 +03:00
OutputPath : '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/Release/Microsoft.Azure.Cosmos'
2023-04-11 21:48:29 +03:00
BlobVersion : $(BlobVersion)