Files
jenkins-multibranch-project/Jenkinsfile
Guillem Hernandez Sola f6b14f475d Added maven_jenkins
2020-10-19 21:09:35 +02:00

27 lines
559 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'
}
}
}
}