2011-01-05 16 views
1

私はCruise Control.net 1.5をVisual Source Safeに統合しようとしています。Cruise Control.Net 1.5 + Visual Source Safe + MSBuild.exe

Visual Source Safeを使用してクルーズコントロールネットを実行するために、ステップバイステップ(Build + Email + Triggers + Publishの設定)で誰かが共有することができます。事前に

おかげで...

+0

あなたはccnetのドキュメントで見たことがありますか? http://confluence.public.thoughtworks.org/display/CCNET/Visual+Source+Safe+Source+Control+Block –

+0

私はそれを試しましたが、一度この特定の部分はexcutedされている問題です。ファイルはローカルフォルダでgetlatestではありません。コマンドプロンプトで "No Modification"と表示されます。 – user563487

答えて

1

あなたが"How to Hook Up a VS.NET 2005 Solution with CruiseControl.NET in a few minutes."で見たことがありますか?

(VSS用)の設定ファイルは、次のようになります

<cruisecontrol> 
    <project name="Johans Test System"> 
    <sourcecontrol type="vss" autoGetSource="true" applyLabel="true"> 
     <executable>C:\Program Files\Microsoft Visual SourceSafe\ss.exe</executable> 
     <project>$/JohansTestSystem.root</project> 
     <username>Johan</username> 
     <password></password> 
     <ssdir>c:\vss\</ssdir> 
     <workingDirectory>C:\CI\</workingDirectory> 
     <cleanCopy>true</cleanCopy> 
    </sourcecontrol> 

    <triggers> 
     <intervalTrigger seconds="60" /> 
    </triggers> 

    <tasks> 
     <msbuild> 
     <executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable> 
     <workingDirectory>c:\CI\JohansTestSystem</workingDirectory> 
     <projectFile>JohansTestSystem.sln</projectFile> 
     <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs> 
     <targets>Build</targets> 
     <timeout>15</timeout> 
     <logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,ThoughtWorks.CruiseControl.MsBuild.dll</logger> 
     </msbuild> 
     <nunit path="C:\nunit\bin\nunit-console.exe"> 
     <assemblies> 
      <assembly>C:\CI\JohansTestSystem\Johan.Test\bin\Debug\Johan.Test.dll</assembly> 
     </assemblies> 
     </nunit> 
    </tasks> 

    <publishers> 
     <xmllogger /> 
    </publishers> 

    </project> 
</cruisecontrol> 

Email blocks documentationは非常に簡単です。ここで

はCruiseControl.NETの例である:

1<email mailport="25" includeDetails="TRUE" mailhostUsername="smtpuser" mailhostPassword="smtppassword" useSSL="FALSE"> 
2 <from>[email protected]</from> 
3 <mailhost>smtp.mycompany.com</mailhost> 
4 <users> 
5 <user name="BuildGuru" group="buildmaster" address="[email protected]" /> 
6 <user name="JoeDeveloper" group="developers" address="[email protected]" /> 
7 </users> 
8 <groups> 
9 <group name="developers"> 
10  <notifications> 
11  <notificationType>Failed</notificationType> 
12  <notificationType>Fixed</notificationType> 
13  </notifications> 
14 </group> 
15 <group name="buildmaster"> 
16  <notifications> 
17  <notificationType>Always</notificationType> 
18  </notifications> 
19 </group> 
20 </groups> 
21 <converters> 
22 <regexConverter find="$" replace="@TheCompany.com" /> 
23 </converters> 
24 <modifierNotificationTypes> 
25 <NotificationType>Failed</NotificationType> 
26 <NotificationType>Fixed</NotificationType> 
27 </modifierNotificationTypes> 
28 <subjectSettings> 
29 <subject buildResult="StillBroken" value="Build is still broken for {CCNetProject}" /> 
30 </subjectSettings> 
31 <xslFiles> 
32 <file>xsl\header.xsl</file> 
33 <file>xsl\compile.xsl</file> 
34 <file>xsl\unittests.xsl</file> 
35 <file>xsl\modifications.xsl</file> 
36 </xslFiles> 
37 <attachments> 
38 <file>C:\Data\AFile.txt</file> 
39 <file>Relative.txt</file> 
40 </attachments> 
41</email> 

、あなたがGmailのを経由して送信する場合はもちろん、それはあまりにもクールだ:

のGmailのGmailを経由してメールを送信するために: *メールホスト= "smtp.gmail.com" * mailport = "587" * mailhostUsername = "[email protected]" * mailhostPassword = "あなたのパスワード" * useSslオプション= "TRUE"

あなたはおそらくもCC.NETメールパブリッシングについてthis SO threadをチェックアウトする必要があります:

関連する問題