* remove esrp signing

* copy artifacts to azure sdk release blob storage

* fix typo

* fix typos

* fix dotnet pack tasks

* fix missing command

* unquarantine TestWithFixedLeaseContainer
This commit is contained in:
Garrett Ausfeldt 2019-10-14 08:46:13 -07:00 коммит произвёл kirankumarkolli
Родитель 563bd2511f
Коммит c4fe980200
1 изменённых файлов: 30 добавлений и 108 удалений

Просмотреть файл

@ -40,112 +40,34 @@ stages:
arguments: --configuration $(BuildConfiguration) /p:Optimize=true
versioningScheme: OFF
# - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
# displayName: 'ESRP CodeSigning - binaries'
# ConnectedServiceName: 'ESRP Code Signing 2019'
# FolderPath: Microsoft.Azure.Cosmos
# Pattern: Microsoft.Azure.Cosmos.Client.dll
# signConfigType: inlineSignParams
# inlineOperation: |
# [
# {
# "keyCode": "CP-233863-SN",
# "operationSetCode": "StrongNameSign",
# "parameters": [],
# "toolName": "sign",
# "toolVersion": "1.0"
# }, {
# "keyCode": "CP-230012",
# "operationSetCode": "SigntoolSign",
# "parameters": [
# {
# "parameterName": "OpusName",
# "parameterValue": "Microsoft"
# },
# {
# "parameterName": "OpusInfo",
# "parameterValue": "http://www.microsoft.com"
# },
# {
# "parameterName": "FileDigest",
# "parameterValue": "/fd \"SHA256\""
# },
# {
# "parameterName": "PageHash",
# "parameterValue": "/NPH"
# },
# {
# "parameterName": "TimeStamp",
# "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
# }
# ],
# "toolName": "sign",
# "toolVersion": "1.0"
# }, {
# "keyCode": "CP-233863-SN",
# "operationSetCode": "StrongNameVerify",
# "parameters": [ ],
# "toolName": "sign",
# "toolVersion": "1.0"
# }, {
# "keyCode": "CP-230012",
# "operationSetCode": "SigntoolVerify",
# "parameters": [{
# "parameterName": "VerifyAll",
# "parameterValue": "/all"
# }],
# "toolName": "sign",
# "toolVersion": "1.0"
# }
# ]
# SessionTimeout: 20
#
# - task: DotNetCoreCLI@2
# displayName: Pack Microsoft.Azure.Cosmos
# inputs:
# command: pack
# configuration: $(BuildConfiguration)
# searchPatternPack: Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
# arguments: -v detailed -c $(BuildConfiguration) --no-build --no-restore -o "$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos"
# versioningScheme: OFF
#
# - task: DotNetCoreCLI@2
# displayName: Pack Microsoft.Azure.Cosmos Symbols
# inputs:
# command: pack
# configuration: $(BuildConfiguration)
# searchPatternPack: Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
# arguments: -v detailed -c $(BuildConfiguration) --no-build --include-symbols /p:SymbolPackageFormat=snupkg --no-restore -o "$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos"
# versioningScheme: OFF
#
# - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
# displayName: 'ESRP CodeSigning - nuget'
# inputs:
# ConnectedServiceName: 'ESRP Code Signing 2019'
# FolderPath: $(Build.ArtifactStagingDirectory)\bin
# Pattern: 'Microsoft.Azure.Cosmos*.nupkg'
# signConfigType: inlineSignParams
# inlineOperation: |
# [
# {
# "keyCode": "CP-401405",
# "operationSetCode": "NuGetSign",
# "parameters": [ ],
# "toolName": "sign",
# "toolVersion": "1.0"
# },
# {
# "keyCode": "CP-401405",
# "operationSetCode": "NuGetVerify",
# "parameters": [ ],
# "toolName": "sign",
# "toolVersion": "1.0"
# }
# ]
# SessionTimeout: 20
#
# - task: PublishBuildArtifacts@1
# displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos'
# inputs:
# artifactName: Microsoft.Azure.Cosmos
- task: DotNetCoreCLI@2
displayName: 'Create SDK NuGet Package'
inputs:
command: custom
projects: 'Microsoft.Azure.Cosmos\src\Microsoft.Azure.Cosmos.csproj'
custom: pack
arguments: '-v detailed -c $(BuildConfiguration) --no-build --no-restore -o "$(Build.ArtifactStagingDirectory)\bin\AnyCPU\$(BuildConfiguration)\Microsoft.Azure.Cosmos"'
- task: DotNetCoreCLI@2
displayName: 'Create SDK NuGet Symbols Package'
inputs:
command: custom
projects: 'Microsoft.Azure.Cosmos\src\Microsoft.Azure.Cosmos.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"'
- task: AzureFileCopy@2
displayName: ' Copy Artifacts to Azure SDK Release blob storage'
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/bin/AnyCPU/$(BuildConfiguration)/Microsoft.Azure.Cosmos'
azureSubscription: azuresdkpartnerdrops
Destination: AzureBlob
storage: azuresdkpartnerdrops
ContainerName: 'drops'
BlobPrefix: 'cosmosdb/csharp/$(Version)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts: Microsoft.Azure.Cosmos'
inputs:
artifactName: Microsoft.Azure.Cosmos
#