jenkins Unable to find build script at C:/

1,841 views
Skip to first unread message

praneeth

unread,
Aug 26, 2012, 9:16:47 AM8/26/12
to jenkins...@googlegroups.com

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? The home directory path in the server was set to /var/lib/jenkin   and my build.xml is in c:/ drive of my machine

the error it is showing is

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



Regards

praneeth

Mark Waite

unread,
Aug 26, 2012, 2:51:28 PM8/26/12
to jenkins...@googlegroups.com
You should place your selenium tests in a source control system (Git, Subversion, etc.) either on a hosted provider (like github.com or code.google.com) or hosted on your own machine (Windows or Linux server running the version control software).  Then checkout from that source control system and run your tests from the workspace directory (not from C:\).

That will allow you to grow your tests to run on multiple machines in parallel, to run multiple tests concurrently, and many other positives.

Mark Waite


From: praneeth <praneet...@rediffmail.com>
To: jenkins...@googlegroups.com
Sent: Sunday, August 26, 2012 7:16 AM
Subject: jenkins Unable to find build script at C:/

praneeth

unread,
Aug 27, 2012, 5:39:25 AM8/27/12
to jenkins...@googlegroups.com
Hi Mark ,

I have placed the selenium tests in the subversion..but still I am getting this error. My buid.xml file is at https:/svn.qsu-dev.com/svn/moveon4-javabrowsertests/trunk/moveon4tests1  but you can see in the error that it is automatically pointing to /var/lib/jenkins/jobs/moveon4/workspace..it is the default home drirectory ..how can i change it?

Building in workspace /var/lib/jenkins/jobs/moveon4/workspace
Updating https://svn.qsu-dev.com/svn/moveon4-javatests/trunk
At revision 71
no change for https://svn.qsu-dev.com/svn/moveon4-javatests/trunk since the previous build
FATAL: Unable to find build script at /var/lib/jenkins/jobs/moveon4/workspace/https:/svn.qsu-dev.com/svn/moveon4-javatests/trunk/moveon4tests1/build.xml

Build step 'Invoke Ant' marked build as failure
Finished: FAILURE

Sophie...@bull.net

unread,
Aug 27, 2012, 6:05:42 AM8/27/12
to jenkins...@googlegroups.com
hi,
 
i'm trying to create a free-style job with a Maven step.
My problem is the folowing :
I when running the maven command : mvn -o -s toto/settings.xml install
The settings.xml contains the line :
<settings><localrepository>toto/repository</localrepository></settings>
 
My workspace structure :
jenkins/workspace/JOB/toto/settings.xml
jenkins/workspace/JOB/toto/repository
jenkins/workspace/JOB/toto/pom.xml
jenkins/workspace/JOB/toto/module....
 
Jenkins build is failed :
[INFO] Building PORTAIL ASSURES CORE
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-site-plugin

Reason: POM 'org.apache.maven.plugins:maven-site-plugin' not found in repository: System is offline.

  org.apache.maven.plugins:maven-site-plugin:pom:2.0-beta-7


 for project org.apache.maven.plugins:maven-site-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Aug 27 11:29:53 CEST 2012
[INFO] Final Memory: 1M/57M
[INFO] ------------------------------------------------------------------------
Build step 'Invoquer les cibles Maven de haut niveau' marked build as failure
Finished: FAILURE
 
 
 
Now, if i use the same job with the maven command : mvn -o -s settings.xml install
The settings.xml contain the line :
<settings><localrepository>repository</localrepository></settings>
and the workspace structure :
jenkins/workspace/JOB/settings.xml
jenkins/workspace/JOB/repository
jenkins/workspace/JOB/toto/pom.xml
jenkins/workspace/JOB/toto/module....
 
the Jenkins job is successfull
 
Do you know why jenkins does not success when the "repository" and "settings" file are not in the root workspace directory ?
do you kwon how can i fix the build with the first architecture ?
 
Thank for helping
 
Best regard.
sophie Dahan
 

Sami Tikka

unread,
Aug 27, 2012, 6:17:57 PM8/27/12
to jenkins...@googlegroups.com
Jenkins has a built-in limitation: It must check out your source tree to local disk before it is able to access files in version control server.

Go to job configuration. Then, under "Source Code Management", choose Subversion.

In the Repository URL type https://svn.qsu-dev.com/svn/moveon4-javabrowsertests/trunk/moveon4tests1

Provide a way to authenticate Jenkins to your Subversion server, if Jenkins prompts you to do it.

Did you know that usually URLs have two slashes in the beginning? "https://SERVERNAME" vs. "https:/SERVERNAME". Some software might be picky and not work correctly if you omit the 2nd slash.

-- Sami
Reply all
Reply to author
Forward
0 new messages