Jenkins: about the build.xml path

I get the output below when creating a job. I have build.xml in the root of my project not in /var/lib/jenkins/jobs/mbp2/workspace/build.xml ... I tried to specify the path in

 > Invoke ant: > > Target: /home/javier/programacion/mbp/myfirm2/build.xml 

but the result is the same ...

I am new to Jenkins and follow this tutorial (so I installed these plugins, maybe one of them gives an error?).

 Started by user anonymous Checkout:workspace / /var/lib/jenkins/jobs/mbp2/workspace - hudson.remoting.LocalChannel@76996f0c Using strategy: Default Last Built Revision: Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master) Checkout:workspace / /var/lib/jenkins/jobs/mbp2/workspace - hudson.remoting.LocalChannel@76996f0c Fetching changes from 1 remote Git repository Fetching upstream changes from file:///home/javier/programacion/mbp/myfirm Seen branch in repository origin/HEAD Seen branch in repository origin/master Commencing build of Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master) Checking out Revision 9aafeea09cdb23317f2426f8209c75341565c070 (origin/HEAD, origin/master) Warning : There are multiple branch changesets here FATAL: Unable to find build script at /var/lib/jenkins/jobs/mbp2/workspace/build.xml Build step 'Invoke Ant' marked build as failure Finished: FAILURE 

Any help?

Xavi

+8
jenkins
source share
1 answer

Target should be one of the ant targets (say package , compile , test ) and not the location of the build file.

The location of the assembly file should be specified in the Build File , which appears on the next line after Target .

+11
source share

All Articles