mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
23d2458636
commit
edba952030
1 changed files with 6 additions and 0 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -1,11 +1,17 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'worker1' }
|
agent { label 'worker1' }
|
||||||
stages {
|
stages {
|
||||||
|
stage('Current dir') {
|
||||||
|
steps {
|
||||||
|
sh 'pwd'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Docker Build') {
|
stage('Docker Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker build -t spring-petclinic:latest .'
|
sh 'docker build -t spring-petclinic:latest .'
|
||||||
|
|
Loading…
Reference in a new issue