mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
added chanes to jenkins file
This commit is contained in:
parent
36bba4216f
commit
23d1f53738
1 changed files with 25 additions and 0 deletions
25
jenkinsfile
Normal file
25
jenkinsfile
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue