Problem with location of ANT build.xml file

1,751 views
Skip to first unread message

Mathias

unread,
Apr 4, 2011, 10:49:39 AM4/4/11
to Jenkins Users
Hi,
I am very new to Jenkins and I am trying to find out if it might fit
in our software development process. This is why I was asked to test
the system and get it running on a virtual machine.

I had no experience with Jenkins at all - but I was able to get it up
and running.
I am using a combination of Perforce -> Jenkins -> ANT for the jobs.

Unfortunately - one harddrive crash later - I have to reset up the
whole machine.

The problem is now: Jenkins is searching for the ant build.xml file at
a different location than before.
When I build the system the first time it looked like
D:\jenkins\jobs ... here were one folder for each job and the
ANT .properties file located.
The ANT build.xml's where located in e.g. D:\jenkins\jobs\job_001\

But after the resetup Jenkins is looking for the build.xml file in D:
\jenkins\jobs\job_001\workspace\

The question is now - how can I change this?

hope the problem is clear :)

thank you for your time
M.

M.Hueber

unread,
Apr 26, 2011, 7:06:13 AM4/26/11
to jenkins...@googlegroups.com
sorry to ask again...
but I am still in trouble - and really desperate - waiting for aswers/ideas
This problem might be very obvious and easy to solve, but I am not able to
find it.

Dont think if it helps but .... this is my console output for the job ...

Sync complete, took 220781 ms
FATAL: Unable to find build script at
D:\jenkins\jobs\JOB1\workspace\build.xml
Notifying upstream projects of job completion

I updated Jenkins to Jenkins ver. 1.409

I am happy about any idea - how to re-/set the location for the ANT
build.xml file.
thx
M.

--
View this message in context: http://jenkins.361315.n4.nabble.com/Problem-with-location-of-ANT-build-xml-file-tp3425697p3475189.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Chris Marks

unread,
Apr 29, 2011, 1:35:58 PM4/29/11
to jenkins...@googlegroups.com
You can change where the build script is by going to the "Configure" page, and under your "Invoke Ant" build step, click the "Advanced" button.  There's a line for "Build File" that specifies the path relative to the workspace where the build file exists.

Hope this helps.

Thanks,
topher

Didier Durand

unread,
May 1, 2011, 2:05:14 AM5/1/11
to Jenkins Users
Hi,

What Chris says is the solution.

But, why don't you rather try to move your build file in the directory
where ant is searching for it. That would make on parameter less in
your Jenkins config: less parameters is always better.

That means that you may have to move the build.xml file in your source
code repository so that it is downloaded in the right place next time
Jenkibs needs to do it.

regards

didier

On Apr 29, 7:35 pm, Chris Marks <topher1...@gmail.com> wrote:
> You can change where the build script is by going to the "Configure" page,
> and under your "Invoke Ant" build step, click the "Advanced" button.
>  There's a line for "Build File" that specifies the path relative to the
> workspace where the build file exists.
>
> Hope this helps.
>
> Thanks,
> topher
>
> On Tue, Apr 26, 2011 at 5:06 AM, M.Hueber <mathiashue...@gmail.com> wrote:
> > sorry to ask again...
> > but I am still in trouble - and really desperate - waiting for aswers/ideas
> > This problem might be very obvious and easy to solve, but I am not able to
> > find it.
>
> > Dont think if it helps but .... this is my console output for the job ...
>
> > Sync complete, took 220781 ms
> > FATAL: Unable to find build script at
> > D:\jenkins\jobs\JOB1\workspace\build.xml
> > Notifying upstream projects of job completion
>
> > I updated Jenkins to Jenkins ver. 1.409
>
> > I am happy about any idea - how to re-/set the location for the ANT
> > build.xml file.
> > thx
> > M.
>
> > --
> > View this message in context:
> >http://jenkins.361315.n4.nabble.com/Problem-with-location-of-ANT-buil...

Jannet Abdelkefi

unread,
Jul 9, 2019, 8:35:50 AM7/9/19
to Jenkins Users
Hi 

I'm also new to jenkins and i'm trying to do  a  unit test  but i'm using also ANT for the jobs but i did not  find this build.xml. 
My questions is where does this build.xml come from?  Do i have to create the file manually ? 

Hope can somebody help me .. 
Thank you for your time
Reply all
Reply to author
Forward
0 new messages