[我找不到类似的问题]
我对Gitlab有问题。 我试图添加一个新的合并请求-管道:失败,但是一切看起来都很好,我不确定为什么会出错。
作业失败结果:
Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetingapp.api.csproj.nuget.g.props.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetingapp.api.csproj.nuget.g.targets.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api.tests/obj/budgetingapp.api.tests.csproj.nuget.g.props.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api.tests/obj/budgetingapp.api.tests.csproj.nuget.g.targets.
Restore failed in 15.08 sec for /builds/budgeting-app/budgetingapp.api/budgetingapp.api.csproj.
Restore completed in 15.1 sec for /builds/budgeting-app/budgetingapp.api.tests/budgetingapp.api.tests.csproj.
Restoring packages for /builds/budgeting-app/budgetingapp.data/budgetingapp.data.csproj...
Restoring packages for /builds/budgeting-app/budgetingapp.data.tests/budgetingapp.data.tests.csproj...
Installing Microsoft.Build 15.3.409.
Installing Microsoft.Build.Tasks.Core 15.3.409.
Installing Microsoft.Build.Utilities.Core 15.3.409.
Installing Microsoft.Build.Framework 15.3.409.
Installing System.Text.Encoding.CodePages 4.0.1.
Installing Microsoft.Build.Runtime 15.3.409.
Restore completed in 1.78 sec for /builds/budgeting-app/budgetingapp.api/budgetingapp.api.csproj.
ERROR: Job failed: exit code 1
.gitlab-ci.yml:
image : microsoft/dotnet:latest
stages:
- test
before_script:
- 'dotnet restore'
test:
stage: test
script:
- 'cd budgetingapp.api.tests'
- 'dotnet test'
您有什么建议吗?