You don't really specify a lot of information. How do you run the application? Do you have the TeamCity JMeter plugin available?
I run a maven project with the jmeter-maven-plugin and teamcity with the JMeter-plugin. Now you can specify in the pom.xml if you want the test to fail on test failures:
<ignoreResultFailures>false</ignoreResultFailures>
Please also read info on the TeamCity plugin as it uses a specific (non-standard) jtl format:
<propertiesJMeter>
<jmeter.save.saveservice.default_delimiter>\t</jmeter.save.saveservice.default_delimiter>
<jmeter.save.saveservice.print_field_names>true</jmeter.save.saveservice.print_field_names>
</propertiesJMeter>
For more info, see this page, which explains the configuration of the TeamCity JMeter plugin: https://www.blazemeter.com/blog/how-run-jmeter-tests-teamcity-continuous-integration
As a bonus: I invested some time to see how to pass parameters to the JMeter script from the maven build. I came to the conclusion that the maven plugin does not support the normal -J JMeter parameters and you should use -D instead:
<jMeterProcessJVMSettings>
<arguments>
<argument>-Dimage_path=${teamcity.build.workingDir}/src/test/resources/images</argument>
<argument>-Denvironment=TEST</argument>
</arguments>
</jMeterProcessJVMSettings>
Now in JMeter you can use the following variable value to get the value specified in the pom.xml:
${__groovy(System.getProperty("image_path"\,"/some/default/dir"))}