Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins error FATAL: Unable to find build script at C:\selenium tests for moveon\moveon4tests1\build.xml

I am using Jenkins and Ant to run my selenium tests. It works fine when I run them on my local machine. Now I have a Jenkins server which is on a different location and I have to run my tests on that server. when I tried to run the tests on that server Its is failing because it couldn't find the build.xml file. can you please let me know how can I change the home directory path?

Started by user :**********
Building in workspace /var/lib/jenkins/jobs/moveon4 java tests/workspace
FATAL: Unable to find build script at C:\selenium tests for move\movetests1\build.xml
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
like image 364
user1613627 Avatar asked Jan 16 '23 18:01

user1613627


1 Answers

Are you using "Invoke Ant" in your Jenkins job configuration for the build step that executes your Ant build ? If so, the build file location is hidden away in the Advanced section - it's an annoying quirk of Jenkins.

like image 142
gareth_bowles Avatar answered May 02 '23 09:05

gareth_bowles