GeneralThe Artifactory plugin includes release management capabilities for Maven and Gradle runners that use Subversion or Git for VCS. The plugin lets you manually stage a release build, allowing you to:
Staged release builds can later on be promoted or rolled-back, changing their release status in Artifactory and, optionally, moving the build artifacts to a different target repository. Maven Release ManagementRelease management with Maven is done entirely by the plugin and executes the Maven build only once.
In case of a failure, the plugin will do its best to rollback the changes (local and committed). Configuring Maven RunnersTo enable release management in Maven runners, edit the runner's step configuration and check the "Enable Artifactory release management" checkbox.
Staging a Maven Release BuildOnce the release management is enabled, the Artifactory Release Management tab will appear on the top end of the build page.
Clicking on the tab reveals configuration options for the release build:
The release staging page displays the last built version (the version is of the root pom and it is taken from the last non-release build).
Promoting a Release BuildAfter a release build finished successfully it is possible to promote the build. This is not a required step, but very useful if you want to mark the build as released in Artifactory and to move/copy the built artifacts to another repository so the artifacts will be available for the consumers.
Clicking on the link will open the promotion dialog:
Select the target status (Released or Rolled-Back) of the build and optional comment to display in the build in Artifactory. To move or copy the build artifacts select the target repository. Gradle Release ManagementThe release management in Gradle relies on version (and other) properties managed by gradle.properties file. You add all the relevant properties to the release management configuration, and the plugin will read and modify those properties in the gradle.properties file.
Configuring Gradle RunnersThe release management is also available for Gradle runners. To enable Gradle release management, edit the runner's step configuration and check the "Enable Artifactory release management" checkbox.
Staging a Gradle Release BuildOnce the release management is enabled, the Artifactory Release Management tab will appear on the top end of the build page.
Clicking on the tab reveals configuration options for the release build:
The release staging tab displays the release and next development properties configured for the runner. The values are read from the gradle.properties file and calculation of the release and next integration version is attempted and displayed in the text fields. Promoting a Release BuildPromotion is same as in RTD:Maven. Working with SubversionThe release management supports Subversion SCM when using one checkout directory.
Working with GitThe project must perform source checkout on the agent side; if the build is configured to checkout on the server, the release plugin will modify the checkout configuration for the duration of the build and revert the change when the build is done. During the release the plugin will perform the following:
Note that changes will only be committed if changes were made to the files (pom files or gradle.properties). |
TeamCity Artifactory Plugin - Release Management
Skip to end of metadata
Go to start of metadata
Labels:








1 Comment
Hide/Show CommentsMar 18, 2012
Evgeny Goldin
"gradle.properties"needs to be defined as build configuration artifact (General Settings => Artifact paths) for "Artifactory Release Management" tab to work in TeamCity. Otherwise, it throws