TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Gradle

Last modified: 20 April 2023

In order to run builds with Gradle, you need to have Gradle 0.9-rc-1 or higher installed on at least one build agent. Alternatively, if you use Gradle wrapper, you should have properly configured Gradle Wrapper scripts checked in to your Version Control.

Gradle Parameters



Launching Parameters



Java Parameters



Build properties



Teamcity build properties are available in build script via "teamcity" property of the project. This property contains map with all teamcity-related properties. Following example contains task, that will print all available build properties to the build log (it must be executed by buildserver):

task printProperties << { teamcity.each { key, val -> println "##tc-property name='${key}' value='${val}'" } }

Code Coverage



To learn about configuring code coverage options with IDEA code coverage engine, please refer to the IntelliJ IDEA.