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