From 03df67aeee07fa96c3bd8660b8f69fb1221fbd29 Mon Sep 17 00:00:00 2001 From: TechPrimers Date: Sun, 18 Jun 2017 02:18:34 +0530 Subject: [PATCH] add jenkins file --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..2c0b4c87 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + + stages { + stage ('Compile Stage') { + + steps { + withMaven(maven : 'maven_3_5_0') { + sh 'mvn clean compile' + } + } + } + + stage ('Testing Stage') { + + steps { + withMaven(maven : 'maven_3_5_0') { + sh 'mvn test' + } + } + } + + + stage ('Deployment Stage') { + steps { + withMaven(maven : 'maven_3_5_0') { + sh 'mvn deploy' + } + } + } + } +} \ No newline at end of file