pipeline { agent any stages { stage('Build') { steps { echo 'Building...' mvn clean mvn validate mvn compile } } stage('Test') { steps { echo 'Testing...' mvn test } } stage('Deploy') { steps { echo 'Deploying...' mvn package mvn verify mvn install mvn deploy } } } }