[DMAAP-48] Initial code import
[dmaap/datarouter.git] / Jenkinsfile
1 node {\r
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
6     sh "echo ${mvnHome}"\r
7     \r
8     \r
9     // Mark the code checkout 'stage'....\r
10     stage 'Checkout'\r
11     // Get some code from a GitHub repository\r
12     checkout scm    \r
13    \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
18         \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
21 \r
22         \r
23    \r
24 }\r