mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +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 {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
bat './mvnw package'
|
bat './mvnw package'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stage('Test') {
|
}
|
||||||
|
|
||||||
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Testing'
|
echo 'Testing'
|
||||||
}
|
}
|
||||||
|
@ -14,7 +15,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
steps {
|
steps {
|
||||||
echo "blob"
|
echo 'blob'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,15 +24,18 @@ pipeline {
|
||||||
expression {
|
expression {
|
||||||
GIT_BRANCH == 'master'
|
GIT_BRANCH == 'master'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Deploy'
|
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