JetBrains / teamcity-msbuild-logger

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

Teamcity logger is aggressive on treating error messages as being build failures #7

Closed cg110 closed 4 years ago

cg110 commented 4 years ago

Hi,

In our build system on teamcity, msbuild uses an exec task to run some tools, one of them sends output to stderr when it fails to communicate to a server. It then retries against other servers, which succeed, however, the tracing to stderr causes teamcity to detect an error and fail the build, even though the task succeeded.

Is there an option to disable messages traced to error causing a build failure? We'd prefer to rely on the exit code from the exec task.

I suspect I can set the option LogStandardErrorAsError to false for the exec tasks, but we've a lot of them using tools that may do this.

I believe we're using v1.0.7 from the teamcity server (2019.1.2)

Thanks, Chris

cg110 commented 4 years ago

Actually I maybe incorrect on this, I had only a snippet of the build log, and having been given the complete log it looks like the exec had an exit code of -1.