mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Create Jenkinsfile
This commit is contained in:
parent
83ab6d9472
commit
eb06f0fad3
1 changed files with 18 additions and 0 deletions
18
Jenkinsfile
vendored
Normal file
18
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
pipeline {
|
||||||
|
agent none
|
||||||
|
stages {
|
||||||
|
stage('Back-end build') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'maven'
|
||||||
|
label 'master'
|
||||||
|
args '-u root'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean package'
|
||||||
|
stash includes: 'target/*.war', name: 'pet'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue