summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorsg481n <sg481n@att.com>2017-08-03 17:56:38 -0400
committerSai Gandham <sg481n@att.com>2017-08-04 15:41:45 +0000
commitaaf2df8b908fcb48043d2cd51803d8fd99f18b43 (patch)
tree5f90faea16d339e30ee2b7dc6607d7fdbfaeaaa7 /Jenkinsfile
parent6ec9a9ce6c1062efa99da501fe8c6ea116aebf6f (diff)
 [DMAAP-48] Initial code import
Change-Id: I3e65371093487d7de167ec6c29f327f366f1e299 Signed-off-by: sg481n <sg481n@att.com>
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"
+
+
+
+}