{jenkins-plugin-info:pluginId=ant} |
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.
For this plugin to be used, an Ant installation must be specified in the global Jenkins configuration. It can be installed automatically:
Or manually:
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"
}
}
See GitHub releases.
Bump baseline to 1.651.3 and fix tests [JENKINS-46317]
Now requires Jenkins 1.642.x or newer.
Pipeline-compatible build wrapper [JENKINS-26056]