mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
Added Jenkins file
This commit is contained in:
parent
11ad7ac38c
commit
391e135906
1 changed files with 22 additions and 0 deletions
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
node {
|
||||||
|
|
||||||
|
stage('SCM') {
|
||||||
|
// git clone
|
||||||
|
git 'https://github.com/GitPracticeRepo/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('build the packages') {
|
||||||
|
// mvn package
|
||||||
|
sh 'mvn package'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('show test results') {
|
||||||
|
junit 'target/surefire-reports/*.xml'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('archival') {
|
||||||
|
// archiving artifacts
|
||||||
|
archive 'target/*.jar'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue