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