Files
jenkins-multibranch-project/Jenkinsfile
Guillem Hernandez Sola 8c88c5d919 Added maven_jenkins III
2020-10-19 21:12:31 +02:00

26 lines
537 B
Groovy

pipeline {
agent any
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "maven_jenkins"
}
stages {
stage ('Compile Stage') {
steps {
sh 'mvn clean compile'
}
}
stage ('Testing Stage') {
steps {
sh 'mvn test'
}
}
stage ('Deployment Stage') {
steps {
sh 'mvn deploy'
}
}
}
}