更新时间:2022-05-15 08:28:29
在Azure DevOps上运行生成管道时.
When you run the build pipeline on Azure DevOps.
实际上是运行脚本的构建服务帐户.您应该确保构建服务帐户具有足够的访问权限:'//192.168.1.100\c $ \'
It's actually the build service account which is running the script. You should make sure the build service account have sufficient permission to Access: '//192.168.1.100\c$\'
要更改构建代理的身份,只需进入Windows服务并更改相关构建服务的身份(服务名称为"Azure Pipelines代理").
To change the identity of the build agent, just go into Windows Services and change the identity of related Build service (service name is " Azure Pipelines Agent").
在服务状态"下,单击开始.
Under Service Status, click Start.
您应该使用一个用户来远程访问该服务器拥有构建代理的位置,并手动运行该脚本以执行部署过程.如果该用户能够成功部署而没有任何权限问题.只需将此用户用作Azure DevOps代理的生成服务帐户即可.
You should use a user to remote to that the server hold build agent and manually run the script to perform the deploy process. If that user is able to deploy succeed without any permission issue. Simply use this user as your build service account of Azure DevOps agent.
希望这会有所帮助.