Update Jenkinsfile

This commit is contained in:
khalilalturk 2020-03-15 16:47:50 -04:00 committed by GitHub
parent 9e66ea8859
commit e01f7bf168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
Jenkinsfile vendored
View file

@ -19,11 +19,22 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
when {
steps { branch 'master'
sh 'mvn deploy' }
} steps {
} sh 'mvn deploy'}
}
}
stage('Slack Notification') {
steps {
slackSend baseUrl: 'https://hooks.slack.com/services/',
channel: '#jenkins',
message: 'Build Status',
tokenCredentialId: 'slack',
teamDomain: 'soen345'
}
}
} }
} }