fireant-bot/fireant

Add notifications to pipeline

Closed this issue · 2 comments

Add Slack and email notifications to the Jenkins pipeline covering failures.

Added a new "Slack" stage to the pipeline on branch ISSUE-12. Will merge once SLACK_TOKEN credential is added to the Jenkins instance.

stage('Slack') {
            steps {
                slackSend baseUrl: 'https://hooks.slack.com/services/',
                channel: '#jenkins',
                color: 'good',
                message: 'Jenkins Pipline executed successfully!',
                teamDomain: 'apachenutch401',
                tokenCredentialId: 'SLACK_TOKEN'
            }
 }

Merged into main.