JetBrains / teamcity-msbuild-logger

MSBuild logger for TeamCity
Apache License 2.0
19 stars 9 forks source link

Parent FlowId Parameter #13

Closed mblumenauer closed 3 years ago

mblumenauer commented 3 years ago

I want to use the MsBuildLogger inside my Cake Build Script to get a nice collapsible Build Log in TeamCity. Every Cake Task gets displayed in a seperate Service Message Block. But the MsBuild Output is not displayed inside these Blocks. I figured it must be because the first Service Message from MsBuild doesnt have a flow parent.

##teamcity[message text='Build started 26.05.2021 16:04:05.' status='NORMAL' tc:tags='tc:parseServiceMessagesInside' timestamp='2021-05-26T14:04:05.016+0000' flowId='433365ecaf9a4342b71e50126e2e2016']

So i would like to set my Message Block as the flow parent but there is no Parameter to set the parent flow id for the messages generated by the MsBuildLogger.

Or is there another way to get my TeamCity log correctly structured?

NikolayPianikov commented 3 years ago

Unfortunately, it is not possible now

NikolayPianikov commented 3 years ago

To specify root flow-id use the environment variable _TEAMCITY_PROCESS_FLOWID

NikolayPianikov commented 3 years ago

@mblumenauer please try this package