|
GeneralThe Artifactory plugin includes release management capabilities for Maven and Gradle jobs that use Subversion, Git or Perforce 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 JobsTo enable release management in Maven jobs, edit the job configuration and check the "Enable Artifactory release management" checkbox.
Staging a Maven Release BuildOnce the release management is enabled, Artifactory release staging link will appear in the on the top header bar in the job page.
Clicking on the release staging link will open a new page with configuration options for the release build:
The release staging page displays the last build 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 finish 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.
To activate the action click on the 'Artifactory' tab link in the build result page.
Clicking on the link will open the promotion page:
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 JobsThe release management is also available for Gradle tasks in the Gradle Artifactory task. To enable Gradle release management, edit the Artifactory Gradle Task configuration and check "Enabled Release Management" checkbox.
Staging a Gradle Release BuildOnce the release management is enabled, Artifactory release staging link will appear in the on the top header bar in the job page.
The release staging page displays the release and next development properties configured for the job. 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 RTD:as in Maven. Working with SubversionThe release management supports Subversion SCM when using one checkout directory.
Working with GitTo work with Git, the Git plugin has to be configured to build one branch AND to checkout to the same local branch. The remote URL should allow Read+Write access.
During the release the plugin will perform the following:
Working with PerforceThe release management supports Perforce SCM when using one checkout directory.
|
Bamboo Artifactory Plugin - Release Management
Skip to end of metadata
Go to start of metadata
Labels:






