added chanes to jenkins file

This commit is contained in:
sri 2024-03-28 17:38:17 +05:30
parent 36bba4216f
commit 23d1f53738

25
jenkinsfile Normal file
View file

@ -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'
}
}
}
}