Added Jenkinsfile

This commit is contained in:
Jessica Allaire 2020-03-30 19:34:48 -04:00
parent 3af3097b15
commit b74c83ee02

28
Jenkinsfile vendored
View file

@ -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 { post {
slackSend message: "The pipeline ${currentBuild.fullDisplayName} completed successfully." always {
slackSend(message: "The pipeline ${currentBuild.fullDisplayName} completed successfully.")
}
} }
} }
}