0

J'essaye de configurer le CrusieControl.net avec Ankh SVN, l'installation de commande de crusine fonctionne très bien et ccnet.config est configuré correctement, mais quand le processus commence dans arrière-plan, il déclenche l'erreur suivante:CruiseControl.Net + Ankh SVN - svn.exe pas trouvé

System.IO.IOException: Unable to execute file 
[C:\Program Files (x86)\VisualSVN Server\bin\svn.exe]. 
The file may not exist or may not be executable. 
(The system cannot find the file specified) 

* le chemin ci-dessus est un mannequin, je ne peux pas l'EXE ankh svn installé sur ma machine à, C:\Program Files (x86)\AnkhSVN 2

le ccnet.config fichier est comme ci-dessous:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder"> 
    <cb:define PublishDir="D:\ccnet\ccnet\publish"/> 
    <project name="ccnet"> 
    <workingDirectory>D:\ccnet\ccnet\</workingDirectory> 
    <artifactDirectory>D:\ccnet\ccnet\</artifactDirectory> 
    <webURL>http://localhost:62584/</webURL> 
    <triggers> 
     <intervalTrigger name="continuous" seconds="10" 
      buildCondition="IfModificationExists"/> 
    </triggers> 
    <sourcecontrol type="svn"> 
     <trunkUrl>http://server/svn/ccnet/</trunkUrl> 
     <!--<autoGetSource>true</autoGetSource>--> 
     <executable>C:\Program Files (x86)\VisualSVN Server\bin\svn.exe</executable> 
     <username>abc</username> 
     <password>xyz</password> 
     <cleanCopy>true</cleanCopy> 
    </sourcecontrol> 
    <tasks> 
     <msbuild> 
     <executable> 
      C:\WINDOWS\microsoft.net\Framework64\v4.0.30319\MSBuild.exe 
     </executable> 
     <projectFile>ccnet.sln</projectFile> 
     <buildArgs> 
      /noconsolelogger /p:Configuration=Release /v:diag 
     </buildArgs> 
     <logger> 
      C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll 
     </logger> 
     <timeout>600</timeout> 
     </msbuild> 
    </tasks> 
    <labeller type="assemblyVersionLabeller"> 
     <major>2</major> 
     <minor>0</minor> 
     <incrementOnFailure>false</incrementOnFailure> 
    </labeller> 
    <publishers> 
     <statistics /> 
     <xmllogger /> 
    </publishers> 
    </project> 
</cruisecontrol> 

J'ai essayé <autoGetSource>true</autoGetSource> Mais il essaie de trouver le fichier EXE dans mon dossier de solution de projet.

quelqu'un peut me guider pour le chemin ankh svn exe qui sera placé dans <executable>SVN PATH</executable>

Répondre

0

Je suis la solution en installant le TortoiseSVN avec des outils en ligne de commande et spécifiez le svn.exe situé dans le répertoire bin .

donc mon bloc de contrôle de source finale est la suivante:

<sourcecontrol type="svn"> 
     <trunkUrl>http://server/svn/ccnet/</trunkUrl> 
     <executable>C:\Program Files\TortoiseSVN\bin\svn.exe</executable> 
     <username>abc</username> 
     <password>xyz</password> 
     <cleanCopy>true</cleanCopy> 
</sourcecontrol> 
Questions connexes