mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
6d74a79034
commit
d070b0d9ff
1 changed files with 7 additions and 8 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -1,16 +1,15 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage('Maven Install') {
|
stage('Maven Install') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'maven:3.5.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Docker Build') {
|
|
||||||
agent any
|
|
||||||
steps {
|
|
||||||
sh 'docker build -t amar1doc/spring-petclinic:latest .'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue