2013-06-04 49 views
5

Tôi đang cố gắng tạo một dự án mới để kiểm soát hành trình. Để làm điều đó, tôi đã thêm này để tập ccnet.config tôiKiểm soát hành trình & Git: "Hoạt động kiểm soát nguồn đã hết thời gian chờ." lỗi

<project name="MyProj" 
     description="MyProjproject"> 

    <triggers/> 

    <sourcecontrol type="git"> 
    <repository>GitAddr</repository> 
    <branch>releaseName</branch> 
    <autoGetSource>true</autoGetSource> 
    <fetchSubmodules>true</fetchSubmodules> 
    <executable>C:\Program Files (x86)\Git\cmd\git.exe</executable> 
    <tagOnSuccess>false</tagOnSuccess> 
    <commitBuildModifications>false</commitBuildModifications> 
    <commitUntrackedFiles>false</commitUntrackedFiles> 
    <tagCommitMessage>Unation Web Build {0}</tagCommitMessage> 
    <tagNameFormat>Unation-Web-Build-{0}</tagNameFormat> 
    <committerName>Oscar Albrecht</committerName> 
    <committerEMail>[email protected]</committerEMail> 
    <workingDirectory>d:\GIT\Sources\WEB</workingDirectory> 
    <timeout>60000</timeout> 
    </sourcecontrol> 

    <tasks> 
     <exec> 
     <!-- if you want the task to fail, ping an unknown server --> 
     <executable>ping.exe</executable> 
     <buildArgs>localhost</buildArgs> 
     <buildTimeoutSeconds>15</buildTimeoutSeconds> 
     <description>Pinging a server</description> 
     </exec> 
    </tasks> 

    <publishers> 
    <xmllogger /> 
    <artifactcleanup cleanUpMethod="KeepLastXBuilds" 
        cleanUpValue="50" /> 
    </publishers> 

</project> 

Nhưng tôi nhận được một

ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation has timed out. 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.GitFetch(IIntegrationResult result) 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.CreateUpateLocalRepository(IIntegrationResult result) 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.GetModifications(IIntegrationResult from, IIntegrationResult to) 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to) 
    at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild) 
    at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to) 
    at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request) 

tôi có thể sử dụng tiện ích git và git bash để kéo các tập tin, nhưng CruiseControl cho tôi lỗi này. Nó rất lạ và bực bội, bởi vì trong một thời gian nó hoạt động, tôi thậm chí có thể tạo một tệp msbuild để biên dịch nó và vân vân, nhưng nó ngừng hoạt động mà không có thay đổi và bây giờ tôi bị kẹt.

Điều gì có thể xảy ra?

Chỉnh sửa: Tôi tăng thời gian chờ lên 2 giờ. Tôi bắt đầu xây dựng và tôi cũng bắt đầu trong một máy thứ hai kéo. Tôi có thể hoàn thành 3 lần kéo và thông tin tôi nhận được trong ccnet vẫn là "git fetch origin". Có vẻ như nó đã bị khóa. Có cách nào để kiểm tra đầu ra của bàn điều khiển cho các hoạt động không?

+0

Mất bao lâu để hết thời gian chờ? Chúng ta đang nói chuyện ngay lập tức, hoặc dài hơn '60000' của bạn? Nếu bạn sử dụng bằng tay một 'git pull' trên máy xây dựng, nó sẽ mất bao lâu để nó hoạt động? – Pondidum

+0

Nó phụ thuộc. Một vài giây, nếu nó là "tất cả up-to-date", đó là trường hợp vào lúc này. Để tải xuống tất cả các tệp, có thể mất hơn một phút, có thể là 5. – JSBach

+0

@Pondidum Tôi đã cố gắng tăng thuộc tính thời gian chờ, đã chỉnh sửa câu hỏi với nhiều thông tin hơn. – JSBach

Trả lời

3

Đây có thể là vấn đề về tài khoản. Bạn cần phải thay đổi tài khoản dịch vụ CC .. Git được dựa trên ssh và ssh gắn với tài khoản người dùng.

0

Đây là vấn đề về tài khoản. Tôi gặp vấn đề tương tự và giải quyết vấn đề này bằng cách khởi động lại dịch vụ CruiseControl.NET Server từ services.msc.

Các vấn đề liên quan