timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-30] Add a way to configure the path of the ant build to be executed #8102

Closed timja closed 18 years ago

timja commented 18 years ago

Hello everyone,
could you please add a way to tell hudson which ant build file to execute?
I read the response on the mailing list (using a shell command), but I would
prefer to use Ant only, as my server is going to run on both Windows and Unix.
Thanks and keep up the good work.


Originally reported by riccardocossu, imported from: Add a way to configure the path of the ant build to be executed
  • status: Closed
  • priority: Major
  • resolution: Fixed
  • resolved: 2006-03-12T10:02:42+00:00
  • imported: 2022/01/10
timja commented 18 years ago

kohsuke:

This is already there. You can do a Hudson-wide configuration of where your Ant
installations are, and then use it from each project.

timja commented 18 years ago

riccardocossu:

Sorry, I meant: is there a way to execute a build file other than build.xml?
I normally use build.xml in my "local" builds and I would use a file called
"hudson.xml" which would call some "build.xml" targets in a set order to perform
the correct continuous build. The other way could be to define an "hudson"
target which does the same as above, but that would "pollute" the original
build..
Or should I have to set a different ant installation for every project?

timja commented 18 years ago

kohsuke:

Ah, I see.

I modified the configuration screen and put some description so that you can
pass in the '-f'option (or any other options) in "top-level build script" option.