https://github.com/softonic/slacksend
Send messages to slack
https://github.com/softonic/slacksend
docker slack
Last synced: 27 days ago
JSON representation
Send messages to slack
- Host: GitHub
- URL: https://github.com/softonic/slacksend
- Owner: softonic
- License: other
- Created: 2017-07-05T13:56:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T10:00:27.000Z (over 4 years ago)
- Last Synced: 2025-09-15T20:57:09.150Z (9 months ago)
- Topics: docker, slack
- Language: Shell
- Size: 8.79 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
### Slacksend
Utility to send build messages to slack. Using this tool it would be easy to standardise build and deploy messages.
Example usage in a Jenkinsfile:
```
docker run softonic/slacksend \
-t ${env.SLACK_TOKEN} \
-c ${env.SLACK_CHANNEL} \
-v ${env.DEPLOY_VERSION} \
-u ${env.DEPLOY_STACK_NAME} \
-i :hammer_and_wrench: \
-b ${env.BUILD_URL} \
-e production \
-m "deploy" \
-s "SUCCESS" \
-l ${env.PRODUCTION_URL}
```
Example message:
```
developerapi APP
| production deploy SUCCESS 2.18.0
```
"production" is a link to the project's url, "2.18.0" is a link to the build's url.
### Mandatory parameters
```
t - token
c - channel
u - stack name
i - icon
```
### Templates
Template can be chosen with switch "m". Url parameter is mandatory when templates are switched on.
```
b - build url
```
The default template is "deploy". Available templates: "deploy", "test".
### Custom Message
Custom message can be sent with "z" parameter.
#### Additional requirements by template:
* deploy
```
e - env
v - version
```
#### Optional parameter
* deploy
```
l - url. URL of site deployed
```