2 // Get the maven tool.
\r
3 // ** NOTE: This 'M3' maven tool must be configured
\r
4 // ** in the Jenkins global configuration.
\r
5 def mvnHome = tool 'M3'
\r
9 // Mark the code checkout 'stage'....
\r
11 // Get some code from a GitHub repository
\r
14 // Mark the code build 'stage'....
\r
15 stage 'Build DMAAP-DR'
\r
16 // Run the maven build
\r
17 //sh for unix bat for windows
\r
19 sh "${mvnHome}/bin/mvn -f datarouter-prov/pom.xml clean deploy"
\r
20 sh "${mvnHome}/bin/mvn -f datarouter-node/pom.xml clean deploy"
\r