azure - 有没有办法在构建管道中使用环境变量来进行计划的构建?

标签 azure azure-devops azure-pipelines devops

schedules:
- cron: "${cron_schedule_value}"
  displayName: Test
  branches:
  include:
  - master
always: true

我想使用类似的东西,但没有找到示例。是否可以使用环境变量作为 cron 值?

最佳答案

可能不会,因为这不是由代理处理,而是由 Azure Devops 本身处理。因此在扩展时没有可用的环境变量。

关于azure - 有没有办法在构建管道中使用环境变量来进行计划的构建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57726600/

相关文章:

azure-devops - 我如何用更新的版本自动替换/拒绝待处理的版本?

azure-devops - VSTS 版本中不存在工件目录

azure - 错误: The requested resource requires user authentication: in AzureCLI task build pipeline

c# - 如何在 c# .NET 的方法中参数化 Azure TableOperation.Retrieve<Element>

tfs - 我如何分支?

AzureContinouslyDeployment.11.xaml 与 TfvcContinouslyDeploymentTemplate.12.xaml

nuget - 如何使用 Visual Studio for Mac 将图标 URL 添加到我的 Nuget 包

c# - Azure 基于时间的函数在发布后不会触发

azure - 从本地计算机访问azure vm中的spark docker

json - 如何在模板之间传递变量 - ARM json