azure - 有没有办法在 Azure Devops 中多次重试时间敏感步骤?
问题描述
我找到的所有答案都过时了,所以我想知道现在是否有办法在失败后重试一步?
例如:
Step - Install X
Step - Test if X is installed.
If failed, wait 1 minute, then retry two more times before total failure.
我遇到的问题是,第二步是第三方扩展,所以我不能使用 bash 或脚本在步骤中使用内部循环来完成它。
解决方案
不,这还不可能。但是,这是在路线图上
添加了任务的自动重试,可以通过以下方式使用:
- task: <name of task>
retryCountOnTaskFailure: <max number of retries>
...
但是The failing task is retried immediately.
,因此无法定义等待时间。
推荐阅读
- python - 为什么应用内核掩码得到高斯图像时,输出只是没有内容的白色图像?
- google-chrome-extension - chrome.storage.sync.get 总是返回默认值
- sql-server - SQL Server Management Studio 中的垂直选项卡 - 并排查询和结果?
- node.js - 我可以使用 MongoDB 模式模型来定义 IndexedDB 索引吗?
- javascript - 使用 onclick 事件传递参数
- sql - 如何获得在 CTE 中生成的随机数不会在 JOIN 中更改?
- html - css媒体不工作,是什么问题?
- android - 使用 Kotlin 在 .ics 文件中查找一行
- ios - 如何在 iOS 上将应用程序的使用限制在一台设备上
- c++ - 网站 coderbyte 上的“gets(stdin)”是怎么回事?