开发者

CruiseControl.NET: How to access modifications in MSBuild task?

开发者 https://www.devze.com 2022-12-21 14:43 出处:网络
I\'d like to do some action based on modified files. I have such project configuration <project name=\"MyProject\">

I'd like to do some action based on modified files. I have such project configuration

<project name="MyProject">
  <sourcecontrol type="vsts" autoGetSource="true">
  ...
  </sourcecontrol>
  <tasks>
    <msbuild>
开发者_C百科    ...
    </msbuild>
  </tasks>

Is there any way how to put or access the modifications comes from source control in that configured MSBuild task? I cannot see any integration property for this, but I can see modifications in CCNET build log

<cruisecontrol project="MyProject">
  <request source="ScheduledTrunk" buildCondition="ForceBuild">...</request>
  <modifications>
    <modification type="merge">
      <filename>MyFile.cs</filename>
      <project>$/MyProject/Trunk/Source/</project>
      <date>2010-02-23 02:27:40</date>
      <user>domain\user</user>
      <comment>Some comment</comment>
      <changeNumber>79367</changeNumber>
      <version>79367</version>
    </modification>
  </modifications>
  <integrationProperties>
  ...
  </integrationProperties>
  <build date="..." buildtime="..." buildcondition="...">
  <msbuild
    startTime="02/23/2010 11:55:52"
    elapsedTime="00:00:51" success="true"
  >
  ...
  </msbuild>
</cruisecontrol>

Thanks for suggestion!

BTW do you know why the common CCNet documentation pages are down for several days already? And what is the primary discussion forum for CCNET?


You are looking for the Mofification Writer Task. This tasks writes modification details to an XML file, which can easily be evaluated from an MSBuild task.

0

精彩评论

暂无评论...
验证码 换一张
取 消