Sometimes a complicated build may need to perform an action that neither Hudson 3 nor a plugin supports. In these cases, we can write a custom script that will perform these actions. We will use the Groovy programming language to implement this custom functionality. Groovy is a dynamic language that runs on the JVM. Groovy is syntactically similar to Java but simplifies many aspects of Java programming and can also be used as a scripting language.
Note
More information can be found about Groovy at the project home page at http://groovy.codehaus.org/. There are also many online tutorials and books to learn more about Groovy.
We must define a Groovy installation for Hudson 3 to execute the Groovy scripts. From the Hudson home page, click on the Manage Hudson link in the left navigation column, and then select Configure System from the center pane of the Manage Hudson page. In the center pane of the System Configurations page, find...