From f4acfdfd3892a34b5fcc86b9b5eb44f1d56651f7 Mon Sep 17 00:00:00 2001 From: Moonseo Kim Date: Mon, 27 Jul 2020 16:38:12 +0900 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97a7169b..05ce5440 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,18 +1,5 @@ -properties([parameters([string(defaultValue: 'test', description: 'test or verify', name: 'testType', trim: false)])]) +@Library('maven_build')_ -node { - checkout scm - - stage('build') { - //withEnv(["PATH+MAVEN=${tool 'apache-maven-3.3.9'}/bin"]) { - withEnv(["PATH+MAVEN=${tool 'mvn-3.6.0'}/bin"]) { - sh 'mvn --version' - sh "mvn clean ${params.testType}" - } - } - - stage('report') { - junit 'target/surefire-reports/*.xml' - jacoco execPattern: 'target/**.exec' - } +stage('build') { + maven_build(); }