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 all the agent machines that you want the build be run on. 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 defined system properties (see Defining and Using Build Parameters in Build Configuration for details). 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.