added Jenkinsfile

This commit is contained in:
siddhaantkadu 2023-12-11 21:30:13 +05:30
parent d69204f2c1
commit de64040496

30
Jenkinsfile vendored Normal file
View 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'
}
}
}
}
}