mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 01:05:48 +00:00
Update Jenkinsfile
This commit is contained in:
parent
607b8b8246
commit
23d2458636
1 changed files with 1 additions and 7 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -1,18 +1,12 @@
|
|||
pipeline {
|
||||
agent { label 'worker1' }
|
||||
stages {
|
||||
stage('Maven install') {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3.5.0'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn clean install'
|
||||
}
|
||||
}
|
||||
stage('Docker Build') {
|
||||
agent any
|
||||
steps {
|
||||
sh 'docker build -t spring-petclinic:latest .'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue