Updated build.gradle to check the build trigger on TeamCity