Question

when ever I try to build my android project on jenkins it fails by saying :

Started by user anonymous Building in workspace /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2 [mysteryshopper_version2] $ ant -Dlabel=trial1-9 clean debug Buildfile: /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml

BUILD FAILED

/home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml:90: Cannot find /home/tanzeelrana/android-sdk-linux/tools/ant/build.xml imported from /home/tanzeelrana/git/eventmatrix-cordova-app/mysteryshopper_version2/build.xml

Total time: 0 seconds Build step 'Invoke Ant' marked build as failure Finished: FAILURE

on line 90 in my build.xml file I have a tag with the following in it :

import file="/home/tanzeelrana/android-sdk-linux/tools/ant/build.xml"

does anyone know why it is unable to locate this file ? the file exist at the exact path ....

Était-ce utile?

La solution

Jenkins usually runs with its own user (jenkins),
so it is probably an issue of permissions.

Try printing the current user from within your Jenkins job.

EDIT:
See here about running Jenkins as a daemon -
it also shows how to set it to run as a different user than 'jenkins':

Installing Jenkins as a Unix daemon

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top