diff --git a/Jenkinsfile b/Jenkinsfile index dc02830..c5b9a4a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,27 +1,15 @@ pipeline { - agent { - docker { - image 'maven:3.8-openjdk-18' - args '-v $HOME/.m2:/root/.m2' - } + agent { + docker { + image 'maven:3.9.5-eclipse-temurin-17-alpine' + args '-v /root/.m2:/root/.m2' + } } stages { - stage('Build') { - steps { - checkout scm - sh './mvnw compile' + stage('Build') { + steps { + sh 'mvn -B -DskipTests clean package' + } } - } - stage('Test') { - steps { - sh './mvnw test' - junit '**/target/surefire-reports/TEST-*.xml' - } - } - stage('Package') { - steps { - sh './mvnw package -DskipTests' - } - } } - } \ No newline at end of file +} \ No newline at end of file