pipeline { agent { docker { image 'maven:3.3.3' } } stages { stage('build') { steps { sh 'mvn clean package spring-boot:repackage' sh 'mvn spring-boot:run' } } } }