VSTS构建代理因获取源而失败:权限被拒绝 [英] VSTS build agent failed with get sources: Permission denied
问题描述
我看过几篇文章,但对我没有帮助.我已经在Azure中创建了大约10台Linux计算机,并将它们添加到代理池中.
I have seen a couple of posts, but it did not help me. I have created around 10 Linux machines in Azure and added them to agent pools.
首先,构建成功,但是当我再次将构建排队时,它在获取源时失败,并出现以下错误.
First, the build succeeded, but when I queued the build again, it failed at get sources with the below error.
我的构建定义已配置:
- 干净:真实
- 干净的选择:来源
错误:
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
目录(您也可以检查权限)通过参考帖子
Based on the logs, it seems delete for the duilddir/support-files
directory is not allowed (you can also check the permission by referring to the post Why can't I delete a file where I have group write permissions on?).
请在您代理的工作文件夹下设置允许删除权限.
Please set the permission enable to delete under your agent's work folder.
这篇关于VSTS构建代理因获取源而失败:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!