How to detect if a Gradle build is running on TeamCity?

Viewed 175

Some log messages in my build scripts are only relevant when the Gradle build is running on TeamCity. How do detect programmatically if the Gradle build is running on TeamCity or not?

1 Answers
Related