mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-13 21:31:11 +00:00
33 lines
594 B
Groovy
33 lines
594 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
tools {
|
|
maven "M3"
|
|
jdk "JDK17"
|
|
}
|
|
|
|
stages{
|
|
stage('Git Clone'){
|
|
steps {
|
|
git url: 'https://github.com/sjh4616/spring-petclinic.git', branch: 'main'
|
|
}
|
|
}
|
|
stage('Maven Build'){
|
|
steps {
|
|
sh 'mvn -Dmaven.test.failure.ignore=true clean package'
|
|
}
|
|
}
|
|
stage('Docker Image Create') {
|
|
steps {
|
|
sh """
|
|
docker build -t wodnr8174/spring-petclinic:$BUILD_NUMBER .
|
|
docker tag wodnr8174/spring-petclinic:$BUILD_NUMBER wodnr8174/spring-petclinic:latest
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|