ERROR: No tool named M3 found

2,466 views
Skip to first unread message

ayache....@infinityworks.com

unread,
May 3, 2016, 8:48:40 AM5/3/16
to Jenkins Users
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 


   // 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" 

}

Baptiste Mathus

unread,
May 3, 2016, 12:15:17 PM5/3/16
to jenkins...@googlegroups.com

--
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-use...@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 all
Reply to author
Forward
0 new messages