Hi, https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s06.html
Cheers 2016-05-03 8:48 GMT+00:00 <ayache.khet...@infinityworks.com>: > 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 > <https://groups.google.com/d/msgid/jenkinsci-users/f5ae5487-3659-41cc-82c0-bd9e4aa17e2a%40googlegroups.com?utm_medium=email&utm_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/CANWgJS5p1gPQtN6YJxFZqoCZkQqG0U17zMYDM%2BzDLzNuaEmT2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.