EpicKnarvik97
3838750f64
Some checks failed
EpicKnarvik97/Books-Without-Borders/pipeline/head There was a failure building this commit
33 lines
809 B
Groovy
33 lines
809 B
Groovy
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...'
|
|
sh 'mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true'
|
|
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
} |