Chúng tôi có một kho lưu trữ SVN được lưu trữ bên ngoài và máy chủ xây dựng của chúng tôi hiện là nội bộ. Thỉnh thoảng (có thể 1 hoặc 2 lần một ngày) máy chủ xây dựng không thể tìm thấy kho SVN do mất mạng, thời gian chờ hoặc một số lý do ngẫu nhiên khác. Với một kho lưu trữ được lưu trữ bên ngoài, điều này là khó tránh, tuy nhiên khi nó không tìm được kho SVN, nó không thành công!CruiseControl.NET xây dựng không thành công khi SVN không có sẵn
Tôi muốn tìm cách để thử lại ở khoảng thời gian tiếp theo và bỏ qua bất kỳ lỗi nào liên quan đến kho lưu trữ không xác định. Có ai biết làm thế nào tôi có thể làm điều này?
Tôi đã đăng cấu hình của mình để tham khảo bên dưới.
<project name="MyProject" queuePriority="0">
<workingDirectory>C:\RemovedForPost</workingDirectory>
<artifactDirectory>C:\RemovedForPost </artifactDirectory>
<sourcecontrol type="svn">
<trunkUrl>http://RemovedForPost \</trunkUrl>
<workingDirectory>source</workingDirectory>
<username>myuser</username>
<password>*****</password>
</sourcecontrol>
<triggers>
<intervalTrigger name="BuildAMinute" seconds="60" buildCondition="IfModificationExists" />
</triggers>
<tasks>
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory>C:\RemovedForPost</workingDirectory>
<projectFile>C:\RemovedForPost\RemovedForPost.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>
<targets>Build</targets>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<timeout>120</timeout>
</msbuild>
<nunit>
<path>C:\Program Files\NUnit 2.5\bin\net-2.0\nunit-console.exe</path>
<outputfile>C:\RemovedForPost.xml</outputfile>
<assemblies>
<assembly> RemovedForPost </assembly>
</assemblies>
<timeout>60</timeout>
</nunit>
</tasks>
Cảm ơn
Chắc chắn bị què. Tôi cũng có vấn đề y hệt. +1. –