TeamCity disable build fail uncatched exception

When i run a gradle script, i get the error:
Exception IOException is never thrown in body of corresponding try statement

But when i run it manually from a command line, i do not get this error, and everything else succeedes.
Is there any way to turn this off?

TeamCity Professional 8.1.2 (build 29993)

1 comment
Comment actions Permalink

You can't turn this error off, you need to fix your code. The fact that is working differently means that something (java version, libraries, etc.) are different on buildAgent and your PC.


Please sign in to leave a comment.