Problem with location of ANT build.xml file

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with location of ANT build.xml file

Mathias
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.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with location of ANT build.xml file

M.Hueber
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.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with location of ANT build.xml file

Chris Marks
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 <[hidden email]> 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-build-xml-file-tp3425697p3475189.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Problem with location of ANT build.xml file

Didier Durand
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 <[hidden email]> 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 <[hidden email]> 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...
> > Sent from the Jenkins users mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Problem with location of ANT build.xml file

Saranya
This post has NOT been accepted by the mailing list yet.
In reply to this post by Mathias
Hi -

You can try giving ./<folderName>/build.xml

.(dot) represent the default workspace location.

Reply | Threaded
Open this post in threaded view
|

Re: Problem with location of ANT build.xml file

Jannet Abdelkefi
In reply to this post by Didier Durand
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


Le dimanche 1 mai 2011 07:05:14 UTC+1, Didier Durand a écrit :
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 <[hidden email]> 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 <[hidden email]> 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:
> ><a href="http://jenkins.361315.n4.nabble.com/Problem-with-location-of-ANT-buil." target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.361315.n4.nabble.com%2FProblem-with-location-of-ANT-buil.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRv2DsT6kRPQn7Xvgzo0IuGO-4jg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.361315.n4.nabble.com%2FProblem-with-location-of-ANT-buil.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRv2DsT6kRPQn7Xvgzo0IuGO-4jg&#39;;return true;">http://jenkins.361315.n4.nabble.com/Problem-with-location-of-ANT-buil...
> > Sent from the Jenkins users mailing list archive at Nabble.com.
>
>

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cd6182ef-fc11-410b-88b9-9aa18acdcafd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.