32 lines
728 B
Plaintext
32 lines
728 B
Plaintext
|
pipeline {
|
||
|
agent any
|
||
|
tools {
|
||
|
jdk 'JDK17'
|
||
|
}
|
||
|
stages {
|
||
|
stage('Build') {
|
||
|
steps {
|
||
|
echo 'Building...'
|
||
|
sh 'mvn clean & mvn validate & mvn compile'
|
||
|
}
|
||
|
}
|
||
|
stage('Test') {
|
||
|
steps {
|
||
|
echo 'Testing...'
|
||
|
sh 'mvn test'
|
||
|
}
|
||
|
}
|
||
|
stage('Verify') {
|
||
|
steps {
|
||
|
echo 'Verifying...'
|
||
|
sh 'mvn verify -Dmaven.test.skip=true'
|
||
|
}
|
||
|
}
|
||
|
stage('Deploy') {
|
||
|
steps {
|
||
|
echo 'Deploying...'
|
||
|
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|