[DMAAP-48] Initial code import
[dmaap/datarouter.git] / Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..a8161fc
--- /dev/null
@@ -0,0 +1,24 @@
+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