A way to run Ant from a workflow using configured Ant installations and so on.

          [JENKINS-26056] Workflow build step for Ant

          I've used AntBuilder with the Groovy plugin, Of couse, that only works on the master, and one has to find the path of the workspace, and attach a logger. While coding build logic is really easy after that, the preparation is rather awkward, and it won't work in Jenkins Pipeline. Of course, one can also use Gradle's 'ant' object, but an AntBuilder step instead of "bat" on Windows would make many things much easier to read, and much simpler to maintain.

          Thomas Goeppel added a comment - I've used AntBuilder with the Groovy plugin, Of couse, that only works on the master, and one has to find the path of the workspace, and attach a logger. While coding build logic is really easy after that, the preparation is rather awkward, and it won't work in Jenkins Pipeline. Of course, one can also use Gradle's 'ant' object, but an AntBuilder step instead of "bat" on Windows would make many things much easier to read, and much simpler to maintain.

          Zach Swanson added a comment -

          Is this still being worked? It's been 'in review' for nearly a year it looks like.

          Zach Swanson added a comment - Is this still being worked? It's been 'in review' for nearly a year it looks like.

          Jesse Glick added a comment -

          I will probably withdraw the PR in favor of one that simply offers AntConsoleAnnotator as a build wrapper.

          Jesse Glick added a comment - I will probably withdraw the PR in favor of one that simply offers AntConsoleAnnotator as a build wrapper.

          Jesse Glick added a comment -

          Ready.

          Jesse Glick added a comment - Ready.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          pom.xml
          src/main/java/hudson/tasks/AntWrapper.java
          src/main/java/hudson/tasks/_ant/AntConsoleAnnotator.java
          src/main/resources/hudson/tasks/AntWrapper/config.groovy
          src/main/resources/hudson/tasks/AntWrapper/help-installation.html
          src/main/resources/hudson/tasks/AntWrapper/help-jdk.html
          src/main/resources/hudson/tasks/AntWrapper/help.html
          src/test/java/hudson/tasks/AntTest.java
          src/test/java/hudson/tasks/AntWrapperTest.java
          src/test/resources/hudson/tasks/_ant/pauses.xml
          http://jenkins-ci.org/commit/ant-plugin/798cf27ebba66685d2fa7446521228fae1ab975f
          Log:
          Merge pull request #22 from jglick/pipeline-JENKINS-26056

          JENKINS-26056 Pipeline-compatible Ant build wrapper

          Compare: https://github.com/jenkinsci/ant-plugin/compare/a210ecc247fb...798cf27ebba6

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/hudson/tasks/AntWrapper.java src/main/java/hudson/tasks/_ant/AntConsoleAnnotator.java src/main/resources/hudson/tasks/AntWrapper/config.groovy src/main/resources/hudson/tasks/AntWrapper/help-installation.html src/main/resources/hudson/tasks/AntWrapper/help-jdk.html src/main/resources/hudson/tasks/AntWrapper/help.html src/test/java/hudson/tasks/AntTest.java src/test/java/hudson/tasks/AntWrapperTest.java src/test/resources/hudson/tasks/_ant/pauses.xml http://jenkins-ci.org/commit/ant-plugin/798cf27ebba66685d2fa7446521228fae1ab975f Log: Merge pull request #22 from jglick/pipeline- JENKINS-26056 JENKINS-26056 Pipeline-compatible Ant build wrapper Compare: https://github.com/jenkinsci/ant-plugin/compare/a210ecc247fb...798cf27ebba6

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            19 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: