VSTS构建代理程序因获取源而失败:权限被拒绝
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VSTS构建代理程序因获取源而失败:权限被拒绝相关的知识,希望对你有一定的参考价值。
我看过几个帖子,但它没有帮助我。我在Azure中创建了大约10台Linux机器并将它们添加到代理池中。
首先,构建成功,但是当我再次对构建进行排队时,它在获取具有以下错误的源时失败了。
我的构建定义已配置:
- 干净:真的
- 清洁选择:来源
错误:
018-03-14T18:08:10.9360932Z ##[command]git clean -fdx
2018-03-14T18:08:11.1202177Z warning: failed to remove builddir/support-files/wsrep.cnf: Permission denied
2018-03-14T18:08:11.1221821Z warning: failed to remove builddir/support-files/sysusers.conf: Permission denied
2018-03-14T18:08:11.1248161Z warning: failed to remove builddir/support-files/CTestTestfile.cmake: Permission denied
2018-03-14T18:08:11.1268109Z warning: failed to remove builddir/support-files/mariadb.pc: Permission denied
2018-03-14T18:08:11.1285043Z warning: failed to remove builddir/support-files/wsrep_notify: Permission denied
2018-03-14T18:08:11.1297658Z warning: failed to remove builddir/support-files/mysql.server: Permission denied
2018-03-14T18:08:11.1309669Z warning: failed to remove builddir/support-files/cmake_install.cmake: Permission denied
2018-03-14T18:08:11.1321349Z warning: failed to remove builddir/support-files/CMakeFiles/CMakeDirectoryInformation.cmake: Permission denied
2018-03-14T18:08:11.1333209Z warning: failed to remove builddir/support-files/CMakeFiles/progress.marks: Permission denied
2018-03-14T18:08:11.1345486Z warning: failed to remove builddir/support-files/mysqld_multi.server: Permission denied
答案
根据日志,似乎不允许删除duilddir/support-files
目录(您也可以通过引用Why can't I delete a file where I have group write permissions on?帖子来检查权限)。
请在代理的工作文件夹下设置要删除的权限。
以上是关于VSTS构建代理程序因获取源而失败:权限被拒绝的主要内容,如果未能解决你的问题,请参考以下文章
在本地运行 GitLab 和 GitLab-Runner docker 实例时,管道中的构建步骤因连接被拒绝错误而失败
三星手机中的 Flutter 构建失败,权限被拒绝:来自 android 的广播要求以用户 -1 的身份运行,但从用户 0 调用