2013-06-04 18 views
5

Cruise control için yeni bir proje oluşturmaya çalışıyorum. Bunun için benim ccnet.config dosyasıCruise Control & Git: "Kaynak kontrol işlemi zaman aşımına uğradı." hata

<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> 

bu katma Ama dosya indirmenin git uzantıları ve git bash kullanmak mümkün bir

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) 

olsun ama CruiseControl verir bana bu hata. Çok garip ve sinir bozucu, çünkü bir süre işe yaradı, hatta derlemek için bir msbuild dosyası bile oluşturabilirdim, ama değişmeden çalışmayı durdurdu ve şimdi sıkışıp kaldım.

Ne olabilir?

Düzenleme: Zaman aşımını 2 saate yükselttim. Yapmaya başladım ve ikinci makinede de çekmeye başladım. 3 çekimi tamamlayabilirim ve ccnet'e aldığım bilgiler hala "git fetch origin" dir. Kilitli görünüyor. İşlemler için konsol çıkışını kontrol etmenin herhangi bir yolu var mı?

+0

Zaman aşımı ne kadar sürer? Anında mı konuşuyorsunuz yoksa 60000’ten daha mı uzun? Yapı makinesinde el ile bir 'git pull 'kullanırsanız, bu ne kadar sürer/çalışır? – Pondidum

+0

Bu bağlıdır. Birkaç saniye, eğer şu andaki "tüm güncel" ise. Tüm dosyaları indirmek için bir dakikadan fazla sürebilir, belki de 5. – JSBach

+0

@Pondidum Zaman aşımı özelliğini arttırmaya çalıştım, daha fazla bilgi içeren soruları düzenledim. – JSBach

cevap

3

Hesap sorunları olabilir. CC servis hesabını değiştirmeniz gerekiyor .. Git, ssh ve ssh kullanıcı hesabına bağlı.

0

Bu, hesap sorunudur. Benzer bir sorunla karşılaştım ve service.msc hizmetinden CruiseControl.NET Server hizmetini yeniden başlatarak çözdüm.

İlgili konular