diff --git a/jenkinsfile b/jenkinsfile index 53ea83562..7df056613 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,3 +1,46 @@ -pipeline{ - +pipeline { + + agent any + + options { + + timeout(time: 10, unit: 'MINUTES') + + } + + triggers { + + pollSCM('* * * * *') + + } + + stages { + + stage('git') { + + steps { + + git url: 'https://github.com/vi-source/spring-petclinic-jenkins-free.git', + + branch: 'dev' + + } + + } + + stage('validate') { + + steps { + + sh 'mvn validate' + + } + + } + + } + + + + } \ No newline at end of file