Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hudson and maven-release-plugin

I'm using Hudson with the maven-release-plugin.

As you may know, the maven-release-plugin builds project in 2 steps: release:prepare, then release:perform.

How should I configure Hudson to execute release:rollback in case release:perform failed?

like image 739
Sergii Avatar asked Jan 28 '11 17:01

Sergii


People also ask

What is Maven release plugin used for?

This plugin is used to release a project with Maven, saving a lot of repetitive, manual work. Releasing a project is made in two steps: prepare and perform. Note: Maven 3 users are encouraged to use at least Maven-3.0.

How to use Maven release plugin in jenkins?

Project ConfigurationOn the job configuration page, enable the "Maven release build" under the Build Environment heading and add whatever release goals and options your require.

What is Mvn release prepare?

Preparing a release goes through the following release phases by default: Check that there are no uncommitted changes in the sources. Check that there are no SNAPSHOT dependencies. Change the version in the POMs from x-SNAPSHOT to a new version (you will be prompted for the versions to use)

How do you release in Jenkins?

To run a release, click the Release icon from the job home page. This will bring you to the release details page where you will be prompted to fill in any parameters that you have defined (or the default RELEASE_VERSION and DEVELOPMENT_VERSION if there were no parameters defined).


1 Answers

The standard way of performing release with Hudson/Jenkins is the Jenkins M2 release plugin. It wraps the maven release plugin and automates its execution.

like image 93
Robert Munteanu Avatar answered Sep 25 '22 22:09

Robert Munteanu