diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..e57b6547a --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,25 @@ +pipeline { + agent{ label 'MAVEN' | 'JDK_17' } + options { timeout(time: 30, unit: 'MINUTES') } + triggers{ + pollSCM ( * * * * * ) + } + environment + { + mypassword = helloadmin + } + stages{ + stage('git'){ + steps { + git url: 'https://github.com/srikanthkuna1618/spring-petclinic-march.git', + branch: 'dev' + } + } + stage('build') { + steps { + sh 'mvn clean package' + } + } + + } +}