diff --git a/Jenkinsfile b/Jenkinsfile index 1dfb4eafe..2b0531bee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,21 @@ pipeline { agent any + tools { + maven "M3" + jdk "JDK17" + } + stages{ stage('Git Clone'){ steps { git url: 'https://github.com/wodnr533/spring-petclinic.git', branch: 'main' } } + stage('Maven Build'){ + steps { + sh 'mvn -Dmaven.test.failure.ignore=true clean package' + } + } } }