From bc67a9733ed08da23d44e95470cc4a9bc91f36a4 Mon Sep 17 00:00:00 2001 From: Chen <43104118+g82005@users.noreply.github.com> Date: Mon, 9 Mar 2020 10:22:18 -0400 Subject: [PATCH] Added Jenkinsfile --- Jenkinsfile | 58 ++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1f827ffeb..a7878f9ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,33 @@ pipeline { - agent any - stages { - stage('Build') { - steps { - sh 'mvn spring-javaformat:apply' - sh './mvnw package' - } - } - stage('Test') { - steps { - sh 'mvn clean test' - } - } - stage('Package') { - steps { - echo 'Package' - } - } - stage('Deploy') { - when { - branch 'master' - } - steps { - echo 'Deploying' - } - } + agent any + stages { + stage('Build') { + steps { + sh 'mvn spring-javaformat:apply' + sh './mvnw package' + } } -} + + stage('Test') { + steps { + sh 'mvn clean test' + } + } + + stage('Package') { + steps { + echo 'Package' + } + } + + stage('Deploy') { + when { + branch 'master' + } + steps { + echo 'Deploying' + } + } + + } +} \ No newline at end of file