Invoking top-level Maven targets on a slave

39 views
Skip to first unread message

Anthony Green

unread,
Jul 21, 2015, 8:21:37 AM7/21/15
to jenkins...@googlegroups.com
I''m running a Jenkins Ubuntu Master with an OS X Slave

I can't get a build step "Invoking top-level Maven targets" to run on a slave.

I get a 

FATAL: command execution failed
java.io.IOException: Cannot run program "mvn"

I've tried setting environment variables and that works for a shell script build step but not a Maven build step.
I've tried setting Tool Locations on the slave to point at the slave's Maven installation and that doesn't work.

How is this supposed to be accomplished? 

Anthony Green

unread,
Jul 22, 2015, 5:22:26 AM7/22/15
to Jenkins Users
On Tuesday, 21 July 2015 13:21:37 UTC+1, Anthony Green wrote:
I''m running a Jenkins Ubuntu Master with an OS X Slave

I can't get a build step "Invoking top-level Maven targets" to run on a slave.

I get a 

FATAL: command execution failed
java.io.IOException: Cannot run program "mvn"

Could the cause be this open Jenkins bug?

https://issues.jenkins-ci.org/browse/JENKINS-3474 

Brantone

unread,
Aug 13, 2015, 3:54:43 AM8/13/15
to Jenkins Users
What're the values in  Manage Jenkins > Maven Installations? 
Assuming it's the default, it could be a class path issue depending on the shell used to start the OS X slave.
What happens if you explicitly set the MAVEN_HOME value to it's absolutely path (ex: /usr/local/apache-maven/apache-maven-3.2.3) ?
Reply all
Reply to author
Forward
0 new messages