First changes to make the build blue

This commit is contained in:
Guillem Hernandez Sola
2020-10-20 10:03:55 +02:00
parent bfa4f4b521
commit 1a03034ae5
5 changed files with 160 additions and 21 deletions

22
Jenkinsfile vendored
View File

@@ -1,31 +1,25 @@
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 {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn clean compile'
}
sh 'mvn clean compile'
}
}
stage ('Testing Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn test'
}
}
}
stage ('Deployment Stage') {
stage ('Installing Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
}
sh 'mvn install'
}
}
}