jenkins the definitive guide

(Jeff_L) #1

section (see Figure 10.36, “Configuring a Maven release using the M2Release plugin”). Here, you define
the goals you want to execute to trigger the build (typically release:prepare release:perform).


Figure 10.36. Configuring a Maven release using the M2Release plugin


Once you have set this up, you can trigger a Maven release manually using a new menu option called
“Perform Maven Release” (see Figure 10.37, “The Perform Maven Release menu option”).


Figure 10.37. The Perform Maven Release menu option


This will kick off a special build job using the goals you provided in the plugin configuration (see
Figure 10.38, “Performing a Maven release in Jenkins”). Jenkins gives you the option to either use the
default version numbers provided by Maven (for example, version 1.0.1-SNAPSHOT will be released
as version 1.0.1, and the development version number bumped up to 1.0.2-SNAPSHOT), or to provide

Free download pdf