jenkins the definitive guide

(Jeff_L) #1

5.9.7. Extra Build Steps in Your Maven Build Jobs


By default, the Maven build job only allows for a single Maven goal. There are times when this is a
little limiting, and you would like to add some extra steps before or after the main build. You can do this
with the Jenkins M2 Extra Steps Plugin. This plugin lets you add normal build steps before and after
the main Maven goal, giving you the flexibility of a freestyle build while still having the convenience
of the Maven build job configuration.


Install this plugin and go to the Build Environment section of your build job. Tick the “Configure Extra
M2 Build Steps” option. You should now be able to add build steps that will be executed before and/or
after your main Maven goal is executed (see Figure 5.48, “Configuring extra Maven build steps”).


Figure 5.48. Configuring extra Maven build steps


5.10. Using Jenkins with Other Languages


As we mentioned earlier, Jenkins provides excellent support for other languages. In this section, we will
look at how to use Jenkins with a few of the more common ones.


5.10.1. Building Projects with Grails


Grails is an open source dynamic web application framework built on Groovy and many well-established
open source Java frameworks such as Spring and Hibernate.

Free download pdf