2020-02-10 23:17:08 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building...'
|
2020-02-11 18:48:49 +01:00
|
|
|
mvn clean
|
|
|
|
mvn validate
|
|
|
|
mvn compile
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
2020-02-11 18:48:49 +01:00
|
|
|
mvn test
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying...'
|
2020-02-11 18:48:49 +01:00
|
|
|
mvn package
|
|
|
|
mvn verify
|
|
|
|
mvn install
|
|
|
|
mvn deploy
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|