I use fluentmigrator (https://github.com/schambers/fluentmigrator) tool to do CI for my database sheme. Its runs via simple MSBuild task (task provided by MSBuildCommunity Tasks):
<Target Name="Migrate" DependsOnTargets="Build;Common">
<Message Text="Starting FluentMigrator migration" />
The problem is my TeamCity conf logs miss important part - logs of running migrations.
If i run my migrations via cmd its work fine and all migration logs available in console output. My build cmd script looks like as:
MSBuild.exe MyMigrations.csproj /t:Migrate
Console Output is:
Starting FluentMigrator migration
[+] Using Database SqlServer2008 and Connection String Data Source=....
[+] Beginning Transaction
[+] Committing Transaction
[+] Task completed.
In TeamCity build conf i used the same MSBuild command, but logs looks like:
[Migrations\MyMigrations.csproj.teamcity] Migrate (1s)
[Migrate] Starting FluentMigrator migration
Process exited with code 0
Publishing internal artifacts
[Publishing internal artifacts] Sending build.finish.properties.gz file
So, i miss part with Beginning Transaction...
I have no idea hw to fix that. Migrator tool just writing message in console output, why TeamCity can`t recognize it, but recognize MSBuild messages fine?