From cc119e4add33fd509bb2d87c617743df07aa28da Mon Sep 17 00:00:00 2001 From: Lavo Date: Wed, 15 Apr 2020 22:46:44 -0400 Subject: [PATCH] basic build file for pic --- Jenkinsfile | 51 ++++++++------------------------------------------- 1 file changed, 8 insertions(+), 43 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8f81d4ad..4fc508255 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,45 +1,10 @@ pipeline { - agent any - tools { - maven 'Maven-3.6.3' - } - stages { - stage('Build') { - steps { - sh 'mvn clean' - } - } - stage('Test') { - steps { - sh 'mvn test' - } - post { - always { - junit 'target/surefire-reports/*.xml' - } - } - } - stage('Package') { - steps { - sh 'mvn package' - } - } - stage('Deploy') { - steps { - echo 'Deploying' - } - post { - success { - mail to: 'sean.how0@gmail.com', - subject: "Build Successful: ${currentBuild.fullDisplayName}", - body: "Successfully built ${env.BUILD_URL}" - } - failure { - mail to: 'sean.how0@gmail.com', - subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", - body: "Something is wrong with ${env.BUILD_URL}" - } - } - } - } +agent any +stages { +stage('Build') { +steps { +sh './mvnw package' +} +} +} } \ No newline at end of file