提交后,我正在使用Travis-CI来构建和测试我的项目。我使用Cake在本地构建和测试。
我的.travis.yaml
看起来像这样:
dist: xenial
sudo: required
language: csharp
mono: none
dotnet: 2.2.101
solution: src/AzureTest/AzureTest.sln
script:
- dotnet tool install -g Cake.Tool
- export PATH=$HOME/.dotnet/tools:$PATH
- dotnet cake build.cake
但是,每次作业在Travis-CI上运行时,都会出现以下错误:
5.27s$ dotnet cake build.cake
========================================
Clean
========================================
========================================
NuGet-Restore
========================================
An error occurred when executing task 'NuGet-Restore'.
Error: One or more errors occurred. (Permission denied)
Permission denied
The command "dotnet cake build.cake" exited with 1.
Done. Your build exited with 1.
有人知道我该如何解决此权限问题?