mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
jenkins file
This commit is contained in:
parent
dbe17fdaec
commit
44769f08ca
1 changed files with 45 additions and 2 deletions
45
jenkinsfile
45
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'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue