O'Reilly logo

Jenkins Continuous Integration Cookbook by Alan Berg

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

Running AntBuilder through Groovy in Maven

Jenkins interacts with an audience with a wide technological background. There are many developers who became proficient in Ant scripting before moving on to using Maven. Developers may be happier with writing an Ant task than editing a pom.xml file. There are mission-critical Ant scripts that still run in a significant proportion of organizations.

In Maven, you can run Ant tasks directly with the ant-run plugin (http://maven.apache.org/plugins/maven-antrun-plugin/) or through Groovy (http://docs.codehaus.org/display/GROOVY/Using+Ant+from+Groovy). Antrun represents a natural migration path. This is the path of least initial work.

The Groovy approach makes sense for the Jenkins administrators who use Groovy ...

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