Hi

I am hoping that somebody will provide some direction here. I've started 
experimenting with Jenkins flow - see below snippet, and I am getting an 
error stating: ERROR: No tool named M3 found. Can anyone snow me how to set 
the M3 (Maven) tool in the global configuration.

Many thanks in advance.

Ayache

node {
 
   // Mark the code checkout 'stage'.... 

   stage 'Checkout' 

   // Get some code from a GitHub repository 

   git url: 'https://github.com/akhettar/telnet-server.git'

   // Get the maven tool. // ** NOTE: This 'M3' maven tool must be 
configured
   // ** in the global configuration. 

   def mvnHome = tool 'M3'

   // Mark the code build 'stage'.... 

   stage 'Build' 

   // Run the maven build 

  sh "${mvnHome}/bin/mvn clean install" 

}

-- 
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/f5ae5487-3659-41cc-82c0-bd9e4aa17e2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to