mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Create Jenkinsfile
This commit is contained in:
parent
5c35771a20
commit
d3dc93686d
1 changed files with 29 additions and 0 deletions
29
Jenkinsfile
vendored
Normal file
29
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building The project'
|
||||
bat './mvnw package'
|
||||
}
|
||||
}
|
||||
stage('Test'){
|
||||
steps {
|
||||
echo 'Running the test in the project'
|
||||
bat 'mvn clean test'
|
||||
}
|
||||
}
|
||||
stage('package'){
|
||||
echo 'Packaging stage has been executed"
|
||||
}
|
||||
stage('Deploy) {
|
||||
when {
|
||||
branch "master" && currentBuild.result == 'SUCCESS'
|
||||
}
|
||||
steps {
|
||||
echo 'Deploying stage has been executed'
|
||||
bat 'make publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue