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