mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 17:35:49 +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 {
|
pipeline {
|
||||||
agent none
|
agent { dockerfile true }
|
||||||
stages {
|
stages {
|
||||||
stage('Maven Install') {
|
stage('Build') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'maven:3.5.0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'java --version'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue