制作蛋糕期间权限被拒绝

时间:2019-10-17 16:04:47

标签: c# .net travis-ci

提交后,我正在使用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.

有人知道我该如何解决此权限问题?

0 个答案:

没有答案