Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents



This plugin adds Apache Ant support to Jenkins.

This functionality used to be a part of the core, but as of Jenkins 1.431, it was split off into separate plugins.


  • Ant Version: Ant Installation to use. See previous section.
  • Targets: Ant targets to invoke. If left blank, default target will be invoked.
  • Build File: Build file to use. If left blank, plugin will look for build.xml in the root directory.
  • Properties: Additional parameters (typical properties file format) to pass to the build. They are passed like -D(name)=(value)
  • Java Options: Custom ANT_OPS.

An example of using the Ant task inside Pipeline DSL. This code snippet must be put inside a step block when using the declarative syntax.

withAnt(installation: 'myinstall') {
dir("scoring") {
if (isUnix()) {
sh "ant mytarget"
    } else {
bat "ant mytarget"

Change Log

Version 1.10 and later

See GitHub releases.

Version 1.9 (2018-10-29)

  • Jira
    serverJenkins JIRA
    as applied to Ant console notes.
  • Jira
    serverJenkins JIRA

Version 1.8 (Jan 22, 2018)

Version 1.7 (Aug 21, 2017)