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:
Modify properties in the
gradle.properties
to release values (before the build starts).Trigger the Gradle build (with optionally different tasks and options).
Commit/push changes to the tag (Subversion) or the release branch (Git)
Modify the
gradle.properties
to the next integration values.Commit/push changes to the trunk.