Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tnfhrnsss/jenkins_slack_notifier
It is an application that sends to Slack when jenkins build fail.
https://github.com/tnfhrnsss/jenkins_slack_notifier
build-fail-alarm jenkins slack slack-bot
Last synced: 5 days ago
JSON representation
It is an application that sends to Slack when jenkins build fail.
- Host: GitHub
- URL: https://github.com/tnfhrnsss/jenkins_slack_notifier
- Owner: tnfhrnsss
- Created: 2023-09-19T01:39:04.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-27T06:36:59.000Z (9 months ago)
- Last Synced: 2024-02-27T07:59:42.848Z (9 months ago)
- Topics: build-fail-alarm, jenkins, slack, slack-bot
- Language: Java
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# When jenkins builds fail, Send message to slack channel with commit author mention.
It is an application that sends notifications to Slack when Jenkins builds fail.
## Requirements
* This project requires Java 8 or later.
* spring boot version 3.x
* slack-api-client 1.29.2# Usage
* You can configure the git repository path and Slack details in the application.yml file.
* You only need to set either the Channel ID or the Channel Name.
```
monitoring:
git:
repository.path:
jenkins:
consoleUrl:
slack:
token: xoxb-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
delivery:
message: "Jenkins Build Fail"
channel:
id:
name:
```
* When a matching user does not exist in the Slack channel, it can be configured to send a direct message to the admin.
* default matching with commit author email address and slack email address.
* run application
* build this project and run JenkinsMonitoringApplication.class
* [OR] java -jar jenkins_slack_notifier*.jar
* execute api
```
curl -X POST 'http://localhost:7777/jenkins/projects/{projectId}/{branch}/alarm'
```## output snapshot
### blog reference
* https://tnfhrnsss.github.io/docs/sub-projects/jenkins_slack_notifier/