azure-devops - 始终为 : true behaviour issue in Azure DevOps pipelines

标签 azure-devops azure-devops-pipelines

我想要实现的目标:仅在 cron 计时器上运行管道,并在计时器上运行它,始终忽略以前的运行状态

trigger: none # No CI build

pr: none # Not for pull requests

schedules:
- cron: "0 0 * * *"
  displayName: Daily midnight build
  branches:
    include:
    - integration-tests
  always: true

我目前拥有的:

  1. 失败的管道按预期工作

enter image description here

  • 成功的管道在首次成功运行后停止工作。手动触发运行失败时甚至不会启动。
  • enter image description here

  • 所有管道都有正确的“计划运行”选项卡。
  • enter image description here

  • 每个管道都没有通过 UI 配置任何触发器/计划
  • enter image description here

    我做错了什么?

    最佳答案

    您可以查看此常见问题解答:

    I see the planned run in the Scheduled runs panel. However, it does not run at that time. Why?

    • “计划运行”面板显示所有可能的计划。但是,除非您对代码进行了真正的更新,否则它可能不会真正运行。要强制计划始终运行,请确保您已在 YAML 管道中设置always 属性,或选中始终在经典管道中运行的选项。

    还有这个My YAML schedules were working fine. But, they stopped working now. How do I debug this?

    根据描述,您可以对 YAML 文件进行一些细微的更改,然后将更新推送到您的存储库。

    您还可以尝试创建新的 YAML 版本并检查结果。

    关于azure-devops - 始终为 : true behaviour issue in Azure DevOps pipelines,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66346522/

    相关文章:

    azure - 在 ubuntu Azure DevOps 代理上安装 sqlpackage 和 azureps

    Azure DevOps 构造命名约定

    azure - 如何修复 Azure DevOps 发布管道中的错误 "Error Code: ERROR_DESTINATION_INVALID"

    azure - 在线构建服务器TFS

    amazon-ec2 - Azure DevOps CD管道上的SSH超时错误

    github - Azupre Pipelines + Github + 无法为拉取请求创建检查

    java - Microsoft VSTS 不构建 Android 项目 - JavaMaximumHeapSize - 在本地计算机上运行

    git - 如何在 Azure DevOps 中的 PR 完成时添加 Git Hook commit-msg?

    当failOnStderr : true , bash错误出现时,Azure脚本任务没有这个标志

    docker - 如何从 Azure key 保管库获取证书以用于 docker 镜像