[JIRA] (JENKINS-52730) Specify build file name

1 view
Skip to first unread message

Knoth.michael@bgetem.de (JIRA)

unread,
Jul 25, 2018, 2:17:18 AM7/25/18
to jenkinsc...@googlegroups.com
Michael Knoth created an issue
 
Jenkins / Improvement JENKINS-52730
Specify build file name
Issue Type: Improvement Improvement
Assignee: Armando Fernandez
Components: ant-plugin
Created: 2018-07-25 06:15
Priority: Minor Minor
Reporter: Michael Knoth

It would be good if it would be possible to include the name of the build file in the function withAnt(...), I could not find any information in the documentation that this is possible. Because our build files are not called build.xml by default, so we would have to be able to specify a different name.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

stefan.drissen@gmail.com (JIRA)

unread,
Mar 24, 2020, 9:24:03 AM3/24/20
to jenkinsc...@googlegroups.com
Stefan Drissen commented on Improvement JENKINS-52730
 
Re: Specify build file name

Since withAnt only provides the Ant environment to ultimately shell out to ant, you can provide the buildfile with -buildfile on the ant command line:

 

withAnt( installation: 'Ant' ) {
  bat 'ant <target> -buildfile mybuild.xml'
}

 

 

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages