【发布时间】:2018-03-31 06:40:46
【问题描述】:
我正在尝试在 .NET 核心的 tfs 上设置构建定义,其中包括使用 XUnit 的测试步骤。一切正常,直到我的测试通过,然后由于某种原因,构建立即失败。
Total tests: 2. Passed: 2. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 3.3499 Seconds
Error: d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return code: 1
Dotnet command failed with non-zero exit code on the following projects :
就是这样,没有其他细节。我很困惑从这里去哪里,测试步骤目前是构建定义中的最后一个。
编辑
这是通过设置 debug = true 得到的详细输出
2017-10-19T09:50:00.4882598Z ##[debug]rc:1
2017-10-19T09:50:00.4902607Z ##[debug]success:false
2017-10-19T09:50:00.5002614Z ##[error]Error:
d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return code: 1
2017-10-19T09:50:00.5002614Z ##[debug]Processed: ##vso[task.issue
type=error;]Error: d:\a\_tool\dncs\2.0.0\x64\dotnet.exe failed with return
code: 1
2017-10-19T09:50:00.5022599Z ##[debug]task result: Failed
2017-10-19T09:50:00.5032599Z ##[error]Dotnet command failed with non-zero
exit code on the following projects :
2017-10-19T09:50:00.5032599Z ##[debug]Processed: ##vso[task.issue
type=error;]Dotnet command failed with non-zero exit code on the following
projects :
2017-10-19T09:50:00.5042604Z ##[debug]Processed: ##vso[task.complete
result=Failed;]Dotnet command failed with non-zero exit code on the
following projects :
【问题讨论】:
-
能否请您设置
debug=true,然后在此处获取并分享日志以进行故障排除? -
我这样做了,但不幸的是,冗长的输出同样没用,我会在这里为您更新。
标签: tfs continuous-integration azure-devops