Cruise Control.Net 1.5 + Visual Source Safe + MSBuild.exe
问题描述:
我试图将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