Sign inSign up

softonic/slacksend

By softonic

•Updated over 4 years ago

Send build notifications to slack

Image
0

50K+

softonic/slacksend repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

over 4 years ago

docker pull softonic/slacksend