我尝试使用Teamcity和msbuild构建一个.Net解决方案。如果我将"Visual Studio (sln)“构建步骤目标设置为”构建“,一切都会正常工作(就像在我的本地计算机上一样)。但是如果我将目标设置为"rebuild“,它找不到库:
vbc error BC2017: could not find library 'C:\ProgramData\JetBrains\TeamCity\buildAgent\work\123456bbbbbbbb\foo\bin\Release\bar.dll'
但如果我在构建过程中查看此文件夹,我会看到此文件已创
我们的TeamCity服务器现在运行了大约3年,每个工件都保存在硬盘上。硬盘现在快满了。
我查看了清理规则,发现:
Everything older than the 5th successful build
History older than the 5th successful build
Artifacts older than the 5th successful build; artifact patterns: +:**/*
Do not prevent dependency artifacts cleanup
我假设所有历史记录、所有工件等都将被删除,这些都是比第五个构建更古