Cover by John Ferguson Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

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.

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.

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).

Adding a Grails installation to Jenkins

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 grails test-app -unit -non-interactive. To get this to work properly, we enclose the options of the second ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required