aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 00000000..a8161fc7
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,24 @@
+node {
+ // Get the maven tool.
+ // ** NOTE: This 'M3' maven tool must be configured
+ // ** in the Jenkins global configuration.
+ def mvnHome = tool 'M3'
+ sh "echo ${mvnHome}"
+
+
+ // Mark the code checkout 'stage'....
+ stage 'Checkout'
+ // Get some code from a GitHub repository
+ checkout scm
+
+ // Mark the code build 'stage'....
+ stage 'Build DMAAP-DR'
+ // Run the maven build
+ //sh for unix bat for windows
+
+ sh "${mvnHome}/bin/mvn -f datarouter-prov/pom.xml clean deploy"
+ sh "${mvnHome}/bin/mvn -f datarouter-node/pom.xml clean deploy"
+
+
+
+}