mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 17:15:48 +00:00
supports jenkinsfile with dockerfile
This commit is contained in:
parent
c5ead47202
commit
33a55bf51b
1 changed files with 8 additions and 8 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -1,14 +1,14 @@
|
|||
pipeline {
|
||||
agent none
|
||||
agent { dockerfile true }
|
||||
stages {
|
||||
stage('Maven Install') {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.5.0'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'java --version'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue