如何配置Azure,在我取消Azure管道运行时发布失败的Cypress测试的截图?

huangapple go评论101阅读模式
英文:

How can I configure Azure to publish screenshots of failed Cypress tests when I cancel the Azure Pipeline run?

问题

我目前在Azure DevOps管道上运行Cypress构建。我已将其配置为在运行完成(或失败)时发布失败测试的截图。如果我取消运行,则不会发布任何截图。

如何配置Azure管道以在运行被取消或失败时发布任何失败测试的截图?

英文:

I currently run a Cypress build on and Azure DevOps pipeline. I have it configured to publish screenshots of failing tests when the run is completed (or fails). If I cancel the run none of the screenshots are published.

How can I configure the Azure pipeline to publish screenshots of any failing tests when the run is cancelled or fails?

答案1

得分: 2

请改用always条件,而不是您现在的条件。

如何配置Azure,在我取消Azure管道运行时发布失败的Cypress测试的截图?

链接在这里

英文:

Please use always condition instead of what you have now.

如何配置Azure,在我取消Azure管道运行时发布失败的Cypress测试的截图?

Link is here

huangapple
  • 本文由 发表于 2023年8月9日 16:48:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76866040-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定