diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a275286b9 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } + } +}