【发布时间】:2021-08-30 10:19:55
【问题描述】:
我有以下时间表在准备中
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main
我用它来发送通知
- task: O365PostMessageBuild@0
condition: succeededOrFailed()
inputs:
addressType: 'url'
url: 'https://webhook.office.com/webhookb2/9615602a-d293-4469-ba56'
messageType: 'message'
title: 'Test Result'
summary: 'Scheduled nightly test run'
text: 'Branch : main'
includeLink: true
linkText: 'View last run'
我希望仅在触发管道时执行任务。我怎样才能做到这一点。
【问题讨论】:
-
你的意思不是 cron?
标签: azure azure-devops azure-pipelines