我試圖將Cruise Control.net 1.5集成到Visual Source Safe。Cruise Control.Net 1.5 + Visual Source Safe + MSBuild.exe
任何人都可以一步一步地與我共享(配置爲Build + Email +觸發器+發佈)來使用Visual Source安全進行巡航控制。
在此先感謝...
我試圖將Cruise Control.net 1.5集成到Visual Source Safe。Cruise Control.Net 1.5 + Visual Source Safe + MSBuild.exe
任何人都可以一步一步地與我共享(配置爲Build + Email +觸發器+發佈)來使用Visual Source安全進行巡航控制。
在此先感謝...
你有沒有看"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」
你或許應該還檢查了this SO thread約CC.NET電子郵件發佈:
你看的CCNET文檔? http://confluence.public.thoughtworks.org/display/CCNET/Visual+Source+Safe+Source+Control+Block – 2011-01-05 05:34:12
我試過這一個,但問題是,一旦這個特定的部分被執行。文件不在本地文件夾中,只在命令提示符下顯示「No Modification」。 – user563487 2011-01-05 05:46:46