mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
Added stages to jenkinsfile
This commit is contained in:
parent
17dd28276d
commit
4d2a8fa5b0
1 changed files with 15 additions and 1 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -1,9 +1,23 @@
|
|||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Maven 3.6.3'
|
||||
jdk 'jdk-13'
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
sh 'mvn clean compile'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'mvn test'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue