Gradle Release Management and the TeamCity Artifactory Plugin

JFrog Integrations Documentation

ft:sourceType
Paligo

The TeamCity Artifactory Plugin supports release management when running builds with Gradle. This relies on the version property (and others) managed by the gradle.properties file. The plugin reads the properties from the Artifactory release management configuration, and modifies those properties in the gradle.properties file.

The plugin manages a release using the following basic steps:

  1. Modify properties in the gradle.properties to release values (before the build starts).

  2. Trigger the Gradle build (with optionally different tasks and options).

  3. Commit/push changes to the tag (Subversion) or the release branch (Git)

  4. Modify the gradle.properties to the next integration values.

  5. Commit/push changes to the trunk.