Update pipelines with release WinGetSvc-Release-20210209.3-02 (#7524)

Co-authored-by: Release bot <pmai@microsoft.com>
This commit is contained in:
wingetbot
2021-02-16 15:17:06 -08:00
committed by GitHub
parent 565c44266e
commit cab681e8ff

View File

@@ -43,6 +43,7 @@ jobs:
env:
HOST_KEY: $(AzureFunctionHostKey)
SIGN_ENDPOINT: $(AzFuncSignEndpoint)
CLEANUP_ENDPOINT: $(AzFuncPublishCleanupEndpoint)
- task: CmdLine@2
displayName: 'Validate Commits'
@@ -122,3 +123,38 @@ jobs:
ValidationConnectionString: $(ValidationStorageAccountConnectionString)
CacheConnectionString: $(CacheStorageAccountConnectionString)
DIApplicationInsightKey: $(DIApplicationInsightKey)
# Agentless phase. Depends on previous job.
- job: 'Cleanup'
pool: server
timeoutInMinutes: 1500
displayName: 'Clean up'
dependsOn:
- 'CommitProcessing'
- 'Publish'
variables:
HostKeySecret: $[ dependencies.CommitProcessing.outputs['wingetsetup.hostkey']]
CleanEndpointSecret: $[ dependencies.CommitProcessing.outputs['wingetsetup.cleanupEndpoint']]
steps:
# Close issues.
- task: AzureFunction@1
displayName: 'Cleanup Issues'
inputs:
function: '$(CleanEndpointSecret)'
key: '$(HostKeySecret)'
body: |
{
"operationId": "$(Build.BuildNumber)",
"PlanUrl": "$(system.CollectionUri)",
"HubName": "$(system.HostType)",
"pipelineType": "CommitPipeline",
"ProjectId": "$(system.TeamProjectId)",
"PlanId": "$(system.PlanId)",
"JobId": "$(system.JobId)",
"TimelineId": "$(system.TimelineId)",
"TaskInstanceId": "$(system.TaskInstanceId)",
"AuthToken": "$(system.AccessToken)",
"BuildRepositoryId": "$(build.repository.id)"
}
waitForCompletion: "true"