mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
add jenkins file
This commit is contained in:
parent
5c35771a20
commit
2193efb2b8
1 changed files with 29 additions and 0 deletions
29
JenkinsFile
Normal file
29
JenkinsFile
Normal file
|
@ -0,0 +1,29 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw clean install'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh './mvnw test'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh './mvnw deploy -DaltDeploymentRepository=internal.repo::default::file:///C:/Users/wmike/Desktop/Jenkins'
|
||||
slackSend(color: 'good', message: "Build Succeeded")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue