MSBuild 无法将文件复制到输出文件夹,因为不必要的文件夹很多



我是stackoverflow的新手,所以如果这是上一个问题的副本,请重定向我

我正在使用 jenkins 服务器自动检查本地 git 存储库。在这个存储库中,有一个用 c# 和 angular 编写的测试网站,jenkins 的工作是检查 git,拉取/克隆存储库并从中构建一个 docker 镜像。

但事实上,詹金斯向我展示了一个"成功",日志抛出了许多"out"文件夹的警告。MSBuild无法发布网页,我找不到错误

/usr/share/dotnet/sdk/2.2.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(141,5): warning MSB3026: Could not copy "/var/lib/jenkins/workspace/test_master/dockerhosting/out/out/out/out/out/out/out/web.config" to "out/out/out/out/out/out/out/out/web.config". Beginning retry 1 in 1000ms. The process cannot access the file '/var/lib/jenkins/workspace/test_master/dockerhosting/out/out/out/out/out/out/out/out/web.config' because it is being used by another process.  [/var/lib/jenkins/workspace/test_master/dockerhosting/dockerhosting.csproj]

由于许多输出文件夹,进程无法访问该文件。这里有人可以帮助我吗?

首先,您不应该有那么多同名的嵌套文件夹。其次,它失败不是因为文件夹太多,而是因为文件web.config is being used by another process

是的,没错。但是我解决了这个问题,并看到问题出在詹金斯本身。我删除了多分支管道,并创建了一个具有相同信息的新管道来扫描 git 并构建映像。目前,问题没有回来。还有其他一些问题,但很快就解决了。无论如何谢谢你

相关内容

最新更新