pipeline { agent any stages { stage('Stop') { steps { sh '/var/lib/jenkins/workspace/stop.sh' } } stage('Build') { steps { sh 'mvn -B -DskipTests clean install' } } stage('Start'){ steps { sh '/var/lib/jenkins/workspace/start.sh' } } // stage('Deploy') { // steps { // sh 'echo publish' // } // } } }