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.
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.
Jenkins provides excellent support for Grails builds. First, you need to install the Jenkins Grails plugin. Once you have installed this and restarted Jenkins, you will need to provide at least one version of Grails for Jenkins to use in the Grails Builder section of the Configure System screen (see Figure 5-49).
Figure 5-49. Adding a Grails installation to Jenkins
Now you can set up a freestyle build job to build your Grails
project. The Grails plugin adds the “Build with Grails” build step,
which you can use to build your Grails application (see Figure 5-50). Here, you provide the Grails
target, or targets, you want to execute. Unlike the command line, you
can execute several targets in the same command. However, if you need to
pass any arguments to a particular target, you should enclose the target
and its arguments in double quotes. In Figure 5-50, for example, we run
grails clean, followed by
-unit -non-interactive. To get this to work properly, we enclose the options of the second ...