mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Create Jenkinsfile
This commit is contained in:
parent
923e2b7aa3
commit
c3aa4d20ee
1 changed files with 23 additions and 0 deletions
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
pipeline {
|
||||||
|
|
||||||
|
agent none
|
||||||
|
|
||||||
|
stages {
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
agent {
|
||||||
|
docker { image 'maven:3.6.3-openjdk-11-slim' }
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
sh 'mvn package -Dmaven.test.skip'
|
||||||
|
}
|
||||||
|
|
||||||
|
post{
|
||||||
|
success {
|
||||||
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue