+++ /dev/null
-node {\r
- // Get the maven tool.\r
- // ** NOTE: This 'M3' maven tool must be configured\r
- // ** in the Jenkins global configuration.\r
- def mvnHome = tool 'M3'\r
- sh "echo ${mvnHome}"\r
- \r
- \r
- // Mark the code checkout 'stage'....\r
- stage 'Checkout'\r
- // Get some code from a GitHub repository\r
- checkout scm \r
- \r
- // Mark the code build 'stage'....\r
- stage 'Build DMAAP-DR'\r
- // Run the maven build\r
- //sh for unix bat for windows\r
- \r
- sh "${mvnHome}/bin/mvn -f datarouter-prov/pom.xml clean deploy"\r
- sh "${mvnHome}/bin/mvn -f datarouter-node/pom.xml clean deploy"\r
-\r
- \r
- \r
-}\r