2021-10-30 14:48:11 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-10-30 15:17:15 +02:00
|
|
|
tools {
|
2022-11-22 16:41:55 +01:00
|
|
|
jdk 'JDK17'
|
2021-10-30 15:17:15 +02:00
|
|
|
}
|
2021-10-30 14:48:11 +02:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building...'
|
|
|
|
sh 'mvn clean & mvn validate & mvn compile'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
|
|
|
sh 'mvn test'
|
|
|
|
}
|
|
|
|
}
|
2022-11-26 15:15:45 +01:00
|
|
|
stage('Verify') {
|
|
|
|
steps {
|
|
|
|
echo 'Verifying...'
|
|
|
|
sh 'mvn verify -Dmaven.test.skip=true'
|
|
|
|
}
|
|
|
|
}
|
2021-10-30 14:48:11 +02:00
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying...'
|
2022-11-26 15:15:45 +01:00
|
|
|
sh 'mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true'
|
2021-10-30 14:48:11 +02:00
|
|
|
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|