I'm write ccnet.config file that should build my project on every checkin on TFS source control server. When I run ccnet.exe, after i chekin something I got this error: Source control failure (GetModifications): string not recognied as valid DateTime. I thought that the problem is in my computer date format, so I change it like that screenshot of my windows date format setting
Nothing changes. Then i saw this post
and think that maybe I should provide regular expression for Date in fileHistoryRegEx tag. But when i pasted in config file default regular expression that finded on
github.com/ccnet/CruiseControl.NET/blob/master/project/core/sourcecontrol/StarTeam.cs like
<fileHistoryRegEx>^Revision: (?<file_revision>\S+) View: (?<view_name>.+) Branch Revision: (?<branch_revision>\S+).\nAuthor: (?<author_name>.*) Date: (?<date_string>.*) \w+\r\n(?<change_comment>.*)</fileHistoryRegEx>
or regular expression that was suggested on
cruisecontrolnet.org/projects/ccnet/wiki/StarTeam
like
<fileHistoryRegEx>?m:Revision: (?<file_revision>\S+) View: (?<view_name>.+) Branch Revision: (?<branch_revision>\S+)Author: (?<author_name>.*?) Date: (?<date_string>\d{01,2}/\d{1,2}/\d\d \d{1,2}:\d\d:\d\d (A|P)M).*\n(?s:(?<change_comment>.*?))-{28}</fileHistoryRegEx>
that gives me exception "unsed code detected" on this node.
This is my config file.
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="WebApplication">
<workingDirectory>C:\Users\Ilovemycat\Source\Workspaces\Selukova\Development\WebApplication\</workingDirectory>
<artifactDirectory>C:\Users\Ilovemycat\Source\Workspaces\Selukova\Development\WebApplication\BuildArtifacts\</artifactDirectory>
<webURL>http://localhost/ccnet/ViewFarmReport.aspx</webURL>
<modificationDelaySeconds>30</modificationDelaySeconds>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
<executable>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\TF.exe</executable>
<server>server</server>
<username>username</username>
<password>password</password>
<domain>domain</domain>
<project>$/Selukova/Development/WebApplication</project>
<workingDirectory>C:\Users\Ilovemycat\Source\Workspaces\Selukova\Development\WebApplication\</workingDirectory>
<cleanCopy>false</cleanCopy>
<workspace>WS-STUDENT12</workspace>
<culture>en-US</culture>
<deleteWorkspace>false</deleteWorkspace>
</sourcecontrol>
<triggers>
<intervalTrigger name="continuous" seconds="30" buildCondition="IfModificationExists" initialSeconds="30"/>
</triggers>
<tasks>
<msbuild>
<executable>C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe</executable>
<workingDirectory>C:\Users\Ilovemycat\Source\Workspaces\Selukova\Development\WebApplication\</workingDirectory>
<projectFile>WebApplication\WebApplication.sln</projectFile>
<buildArgs>/p:Configuration=Debug /v:diag</buildArgs>
<targets>Build;Test</targets>
<timeout>30</timeout>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
</msbuild>
</tasks>
</project>
</cruisecontrol>