Re: Jenkins can't find the build.xml file

2015-08-17 Thread Matic Pajnič
It was indeed a file permissions issue. I solved it by simply setting all
the jenkins files and folders to be universally readable/writable.

Thx for helping :)

2015-08-17 14:05 GMT+02:00 Walter Kelt wak...@comcast.net:

 To see if it you have a permissions issue, u can use chmod to set read
 permissions on the file for user/group/other.

 You could also use chown to set a different
 Owner

 Sent from my iPhone

 On Aug 17, 2015, at 7:56 AM, Matic Pajnič matic.paj...@gmail.com wrote:

 If I run jenkins on user X, then user X has to be the owner of the files?
 I'm asking because I also have a user called jenkins, that's the default
 owner of the files Jenkins creates when operating.

 The project files (including build.xml) are currently owned by user X.

 2015-08-17 13:25 GMT+02:00 Walter Kelt wak...@comcast.net:

 Does the file have proper permissions so that it is readable by Jenkins ?

 Sent from my iPhone

 On Aug 17, 2015, at 7:17 AM, Janez Novak matic.paj...@gmail.com wrote:

 Hi,

 I'm trying to build a simple example project (available here:
 http://eureka.ykyuen.info/2013/10/03/apache-ant-a-simple-ant-build-project/)
 just to see how Jenkins works (I'm new to it and Continuous Integration in
 general). I tried to do it by following a tutorial (available here:
 http://eureka.ykyuen.info/2013/10/04/jenkins-setup-a-simple-ant-build-project/).


 When I start the build from Jenkins, the build fails and this is the
 build log:


 ---

 Building in workspace /var/lib/jenkins/workspace/com-eureka
 FATAL: Unable to find build script at 
 /var/lib/jenkins/workspace/com-eureka/build.xml
 Build step 'Invoke Ant' marked build as failure
 Finished: FAILURE
 ---

 As you can see, the name of my example project is com-eureka, and it is 
 located in the /var/lib/jenkins/workspace/ folder.
 Based on the tutorial, the build.xml file should be located in the 
 /var/lib/jenkins/workspace/com-eureka folder.
 I've checked and the file is indeed there, but is seems as though Jenkins 
 can't see it.

 I'm running Jenkins on localhost, I'm using Ant (I tried with versions
 1.9.2 and 1.9.6; I set the Jenkins configuration to download and install
 Ant automatically).

 --
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Jenkins Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/jenkinsci-users/b3G4KdA2Fyo/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net
 https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


 --
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/CA%2BzboHUvY-smfYymMZjYOmiWSy6FCt7tUae_chnk%3DpFU6o-S8A%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CA%2BzboHUvY-smfYymMZjYOmiWSy6FCt7tUae_chnk%3DpFU6o-S8A%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Jenkins Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/jenkinsci-users/b3G4KdA2Fyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/9AD9BF7A-3A10-40DC-A7FA-15331D8709A9%40comcast.net
 https://groups.google.com/d/msgid/jenkinsci-users/9AD9BF7A-3A10-40DC-A7FA-15331D8709A9%40comcast.net?utm_medium=emailutm_source=footer
 .

 For more options, visit 

Re: Jenkins can't find the build.xml file

2015-08-17 Thread Walter Kelt
To see if it you have a permissions issue, u can use chmod to set read 
permissions on the file for user/group/other. 

You could also use chown to set a different
Owner

Sent from my iPhone

 On Aug 17, 2015, at 7:56 AM, Matic Pajnič matic.paj...@gmail.com wrote:
 
 If I run jenkins on user X, then user X has to be the owner of the files? I'm 
 asking because I also have a user called jenkins, that's the default owner 
 of the files Jenkins creates when operating.
 
 The project files (including build.xml) are currently owned by user X.
 
 2015-08-17 13:25 GMT+02:00 Walter Kelt wak...@comcast.net:
 Does the file have proper permissions so that it is readable by Jenkins ?
 
 Sent from my iPhone
 
 On Aug 17, 2015, at 7:17 AM, Janez Novak matic.paj...@gmail.com wrote:
 
 Hi,
 
 I'm trying to build a simple example project (available here: 
 http://eureka.ykyuen.info/2013/10/03/apache-ant-a-simple-ant-build-project/)
  just to see how Jenkins works (I'm new to it and Continuous Integration in 
 general). I tried to do it by following a tutorial (available here: 
 http://eureka.ykyuen.info/2013/10/04/jenkins-setup-a-simple-ant-build-project/).
  
 
 When I start the build from Jenkins, the build fails and this is the build 
 log:
 
 ---
 Building in workspace /var/lib/jenkins/workspace/com-eureka
 FATAL: Unable to find build script at 
 /var/lib/jenkins/workspace/com-eureka/build.xml
 Build step 'Invoke Ant' marked build as failure
 Finished: FAILURE
 ---
 
 As you can see, the name of my example project is com-eureka, and it is 
 located in the /var/lib/jenkins/workspace/ folder. 
 Based on the tutorial, the build.xml file should be located in the 
 /var/lib/jenkins/workspace/com-eureka folder.
 I've checked and the file is indeed there, but is seems as though Jenkins 
 can't see it.
 
 I'm running Jenkins on localhost, I'm using Ant (I tried with versions 
 1.9.2 and 1.9.6; I set the Jenkins configuration to download and install 
 Ant automatically).
 -- 
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Jenkins Users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/jenkinsci-users/b3G4KdA2Fyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net.
 
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/CA%2BzboHUvY-smfYymMZjYOmiWSy6FCt7tUae_chnk%3DpFU6o-S8A%40mail.gmail.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9AD9BF7A-3A10-40DC-A7FA-15331D8709A9%40comcast.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins can't find the build.xml file

2015-08-17 Thread Matic Pajnič
If I run jenkins on user X, then user X has to be the owner of the files?
I'm asking because I also have a user called jenkins, that's the default
owner of the files Jenkins creates when operating.

The project files (including build.xml) are currently owned by user X.

2015-08-17 13:25 GMT+02:00 Walter Kelt wak...@comcast.net:

 Does the file have proper permissions so that it is readable by Jenkins ?

 Sent from my iPhone

 On Aug 17, 2015, at 7:17 AM, Janez Novak matic.paj...@gmail.com wrote:

 Hi,

 I'm trying to build a simple example project (available here:
 http://eureka.ykyuen.info/2013/10/03/apache-ant-a-simple-ant-build-project/)
 just to see how Jenkins works (I'm new to it and Continuous Integration in
 general). I tried to do it by following a tutorial (available here:
 http://eureka.ykyuen.info/2013/10/04/jenkins-setup-a-simple-ant-build-project/).


 When I start the build from Jenkins, the build fails and this is the build
 log:


 ---

 Building in workspace /var/lib/jenkins/workspace/com-eureka
 FATAL: Unable to find build script at 
 /var/lib/jenkins/workspace/com-eureka/build.xml
 Build step 'Invoke Ant' marked build as failure
 Finished: FAILURE
 ---

 As you can see, the name of my example project is com-eureka, and it is 
 located in the /var/lib/jenkins/workspace/ folder.
 Based on the tutorial, the build.xml file should be located in the 
 /var/lib/jenkins/workspace/com-eureka folder.
 I've checked and the file is indeed there, but is seems as though Jenkins 
 can't see it.

 I'm running Jenkins on localhost, I'm using Ant (I tried with versions
 1.9.2 and 1.9.6; I set the Jenkins configuration to download and install
 Ant automatically).

 --
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Jenkins Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/jenkinsci-users/b3G4KdA2Fyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net
 https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BzboHUvY-smfYymMZjYOmiWSy6FCt7tUae_chnk%3DpFU6o-S8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins can't find the build.xml file

2015-08-17 Thread Walter Kelt
Does the file have proper permissions so that it is readable by Jenkins ?

Sent from my iPhone

 On Aug 17, 2015, at 7:17 AM, Janez Novak matic.paj...@gmail.com wrote:
 
 Hi,
 
 I'm trying to build a simple example project (available here: 
 http://eureka.ykyuen.info/2013/10/03/apache-ant-a-simple-ant-build-project/) 
 just to see how Jenkins works (I'm new to it and Continuous Integration in 
 general). I tried to do it by following a tutorial (available here: 
 http://eureka.ykyuen.info/2013/10/04/jenkins-setup-a-simple-ant-build-project/).
  
 
 When I start the build from Jenkins, the build fails and this is the build 
 log:
 
 ---
 Building in workspace /var/lib/jenkins/workspace/com-eureka
 FATAL: Unable to find build script at 
 /var/lib/jenkins/workspace/com-eureka/build.xml
 Build step 'Invoke Ant' marked build as failure
 Finished: FAILURE
 ---
 
 As you can see, the name of my example project is com-eureka, and it is 
 located in the /var/lib/jenkins/workspace/ folder. 
 Based on the tutorial, the build.xml file should be located in the 
 /var/lib/jenkins/workspace/com-eureka folder.
 I've checked and the file is indeed there, but is seems as though Jenkins 
 can't see it.
 
 I'm running Jenkins on localhost, I'm using Ant (I tried with versions 1.9.2 
 and 1.9.6; I set the Jenkins configuration to download and install Ant 
 automatically).
 -- 
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/49BF8B70-F602-4CD6-8529-CA4AD057B408%40comcast.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins can't find the build.xml file

2015-08-17 Thread Daniel Beck
Could be a permissions issue. Make sure the user Jenkins runs as is owner of 
the workspace and everything in it.

Note that you generally want to check out everything from SCM (Subversion, 
Git,…) rather than prepare a workspace manually.

On 17.08.2015, at 13:17, Janez Novak matic.paj...@gmail.com wrote:

 Hi,
 
 I'm trying to build a simple example project (available here: 
 http://eureka.ykyuen.info/2013/10/03/apache-ant-a-simple-ant-build-project/) 
 just to see how Jenkins works (I'm new to it and Continuous Integration in 
 general). I tried to do it by following a tutorial (available here: 
 http://eureka.ykyuen.info/2013/10/04/jenkins-setup-a-simple-ant-build-project/).
  
 
 When I start the build from Jenkins, the build fails and this is the build 
 log:
 
 ---
 Building in workspace /var/lib/jenkins/workspace/com-eureka
 FATAL: Unable to find build script at 
 /var/lib/jenkins/workspace/com-eureka/build.xml
 Build step 'Invoke Ant' marked build as failure
 Finished: FAILURE
 
 ---
 
 As you can see, the name of my example project is com-eureka, and it is 
 located in the /var/lib/jenkins/workspace/ folder. 
 Based on the tutorial, the build.xml file should be located in the 
 /var/lib/jenkins/workspace/com-eureka folder.
 I've checked and the file is indeed there, but is seems as though Jenkins 
 can't see it.
 
 I'm running Jenkins on localhost, I'm using Ant (I tried with versions 1.9.2 
 and 1.9.6; I set the Jenkins configuration to download and install Ant 
 automatically).
 
 -- 
 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 jenkinsci-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/66ea7048-2968-4a40-b49e-6e41694922e5%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/240FC980-C95B-449A-AEF8-C01139B07BD1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.