2020-02-14 01:07:29 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-10-12 19:27:46 +02:00
|
|
|
tools {
|
2021-10-12 19:41:21 +02:00
|
|
|
jdk 'JDK11'
|
2021-10-12 19:27:46 +02:00
|
|
|
}
|
2020-02-14 01:07:29 +01:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building...'
|
|
|
|
sh 'mvn clean & mvn validate & mvn compile'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
2021-10-12 19:41:21 +02:00
|
|
|
sh 'mvn test'
|
2020-02-14 01:07:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying...'
|
2021-10-12 19:41:21 +02:00
|
|
|
sh 'mvn package & mvn verify & mvn install'
|
2020-02-14 01:07:29 +01:00
|
|
|
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|