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

Gradle

Last modified: 20 April 2023

The Gradle Build Runner runs Gradle projects.

Gradle Parameters



Run Parameters



Java Parameters



Build properties



Since TeamCity 9.1.5 the TeamCity system parameters can be accessed in Gradle build scripts in the same way as Gradle properties. The new recommended way to reference properties is as follows:

or if the system property's name is a legal Groovy name identifier (e.g. system.myPropertyName = myPropertyValue):

An alternative way is using the teamcity property (deprecated since 9.1.5). The property contains the map with all defined system properties (see Defining and Using Build Parameters for details). The example below contains a task that will print all available build properties to the build log (it must be executed by the buildserver):

Code Coverage



Code coverage with IDEA code coverage engine and JaCoCo is supported.