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-12 07:09:55 +01:00
|
|
|
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
2020-02-11 20:34:20 +01:00
|
|
|
sh 'mvn clean & mvn test'
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying...'
|
2020-02-11 21:17:07 +01:00
|
|
|
sh 'mvn clean & mvn compile & mvn package & mvn verify & mvn install'
|
2020-02-10 23:17:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|