Alex Rivera | Logout

Hudson and maven-release-plugin

Asked 2011-01-28T17:15:15.660
10

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?

Edit
Report

2 Answers

9

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.

answered 2011-05-18T08:34:33.493
0

Short answer: don't. Turn off update (do a clean checkout each time). FWIW, in my experience release:rollback isn't terribly reliable anyways.

answered 2011-01-28T18:54:58.787

Your Answer