mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
added Jenkinsfile
This commit is contained in:
parent
d69204f2c1
commit
de64040496
1 changed files with 30 additions and 0 deletions
30
Jenkinsfile
vendored
Normal file
30
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
pipeline {
|
||||||
|
agent { lebal 'MAVEN' }
|
||||||
|
options {
|
||||||
|
timeout(time: 1, unit: 'HOURS')
|
||||||
|
}
|
||||||
|
triggers {
|
||||||
|
pollSCM(* * * * *)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('git') {
|
||||||
|
steps {
|
||||||
|
git url: 'https://github.com/siddhaantkadu/spring-petclinic.git',
|
||||||
|
branch: 'dev'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean package'
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts artifacts: '**/spring-petclinic-*.jar'
|
||||||
|
}
|
||||||
|
always {
|
||||||
|
junit testResults: '**/TEST-*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue