mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Added Jenkinsfile
This commit is contained in:
parent
3af3097b15
commit
b74c83ee02
1 changed files with 17 additions and 13 deletions
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
|
@ -1,12 +1,13 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
bat './mvnw package'
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
bat './mvnw package'
|
||||
}
|
||||
stage('Test') {
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing'
|
||||
}
|
||||
|
@ -14,7 +15,7 @@ pipeline {
|
|||
|
||||
stage('Package') {
|
||||
steps {
|
||||
echo "blob"
|
||||
echo 'blob'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,15 +24,18 @@ pipeline {
|
|||
expression {
|
||||
GIT_BRANCH == 'master'
|
||||
}
|
||||
|
||||
}
|
||||
steps {
|
||||
echo 'Deploy'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
slackSend message: "The pipeline ${currentBuild.fullDisplayName} completed successfully."
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
slackSend(message: "The pipeline ${currentBuild.fullDisplayName} completed successfully.")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue