azure-pipelines - Azure Pipeline 中的 Webdriver-Manager 更新
问题描述
之前在 Azure Pipelines 中遇到过问题webdriver-manager update
,我想添加此命令的附加副本以在第一个失败时运行。
这很好用——虽然我仍然希望webdriver-manager update
总是第一次工作!
但是,如果需要第二个命令,即使实际运行的测试通过,测试也会显示为失败。
如果不需要第二个命令(它被标记为“已跳过”),那么一切都很好并且如果实际测试通过,我会得到正确的结果。
所以我的查询是,是否可以“忽略”失败的第一次更新并将管道显示为通过(当然前提是测试通过)!
谢谢你。
为了完整起见,以下是更新失败时的错误:
2019-09-19T10:44:50.9881873Z ##[section]Starting: Webdriver-Manager Update
2019-09-19T10:44:51.0064449Z
2019-09-19T10:44:51.0064522Z Task : Command Line
2019-09-19T10:44:51.0064560Z Description : Run a command line with
arguments
2019-09-19T10:44:51.0064612Z Version : 1.1.3
2019-09-19T10:44:51.0064666Z Author : Microsoft Corporation
2019-09-19T10:44:51.0064703Z Help : [More Information]
(https://go.microsoft.com/fwlink/?LinkID=613735)
2019-09-19T10:44:51.0064738Z
2019-09-19T10:44:51.0162388Z ##[command]node
node_modules/protractor/bin/webdriver-manager update
2019-09-19T10:44:51.7954075Z [11:44:51] I/config_source - curl -
oC:\vsts\vsts-agent-win-x64-2.140.0\_work\64\s\node_modules\webdriver-
manager\selenium\standalone-response.xml https://selenium-
release.storage.googleapis.com/
2019-09-19T10:44:51.8085038Z [11:44:51] I/config_source - curl -
oC:\vsts\vsts-agent-win-x64-2.140.0\_work\64\s\node_modules\webdriver-
manager\selenium\chrome-response.xml
https://chromedriver.storage.googleapis.com/
2019-09-19T10:44:51.8148392Z [11:44:51] I/config_source - curl -
oC:\vsts\vsts-agent-win-x64-2.140.0\_work\64\s\node_modules\webdriver-
manager\selenium\gecko-response.json
https://api.github.com/repos/mozilla/geckodriver/releases
2019-09-19T10:44:52.4275157Z events.js:183
2019-09-19T10:44:52.4276258Z throw er; // Unhandled 'error' event
2019-09-19T10:44:52.4279198Z ^
2019-09-19T10:44:52.4280058Z
2019-09-19T10:44:52.4280232Z Error: read ECONNRESET
2019-09-19T10:44:52.4280279Z at TLSWrap.onread (net.js:622:25)
2019-09-19T10:44:52.4632661Z ##[error]Process completed with exit code 1.
2019-09-19T10:44:52.4649070Z ##[section]Finishing: Webdriver-Manager
Update
解决方案
推荐阅读
- java - 将游戏分数存储到sqlite数据库java中
- c# - 使用 TimeZoneInfo 解析本地字符串日期
- python - 在我的 Python Fibonacci 程序中,时间函数似乎总是在增加
- sql - 使用超过 255 个 UNION ALL 语句修复 SQL
- android - APK 完全被多个 ABI APK 所掩盖
- sql-server - 使用 SQL 组合详细和汇总的结果
- python - 向量化跨数据框列操作的函数
- javascript - 用户身份验证登录的最佳方法是什么?
- apache-flink - Flink - 为什么我应该创建自己的 RichSinkFunction 而不是仅仅打开和关闭我的 PostgreSql 连接?
- javascript - 使用 Vue 修改数组时出现意外行为