Update Jenkinsfile

This commit is contained in:
mMate89 2023-05-04 12:59:33 +02:00 committed by GitHub
parent 607b8b8246
commit 23d2458636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
Jenkinsfile vendored
View file

@ -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 .'
}