All Projects → mockersf → concourse-slack-notifier

mockersf / concourse-slack-notifier

Licence: Apache-2.0 License
A structured Slack notification resource for Concourse

Programming Languages

rust
11053 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to concourse-slack-notifier

zoom-slack-status-updater
Update your Slack status automatically when you join a Zoom meeting.
Stars: ✭ 23 (+35.29%)
Mutual labels:  slack
CWSlack-SlashCommands
Retrieve ConnectWise information into Slack channels and DMs
Stars: ✭ 54 (+217.65%)
Mutual labels:  slack
slack widgets
An abstraction of the JSON structure needed to create widgets in Slack message attachments
Stars: ✭ 14 (-17.65%)
Mutual labels:  slack
git-slack-notify
Sends Slack notifications for new commits in Git repositories
Stars: ✭ 12 (-29.41%)
Mutual labels:  slack
slack-to-opsgenie-alert-creator
Create alerts from messages sent to a Slack channel
Stars: ✭ 25 (+47.06%)
Mutual labels:  slack
website
PySlackers website for invites and learning resources
Stars: ✭ 61 (+258.82%)
Mutual labels:  slack
slackteams
Manage and Interact with multiple Slack teams in R
Stars: ✭ 21 (+23.53%)
Mutual labels:  slack
ChatViewController
💬 ChatViewController, ChatBar, ImagePicker like Slack Application. Message App written in Swift
Stars: ✭ 47 (+176.47%)
Mutual labels:  slack
bitbot
Bitbot: Rack based Slack bot with a responder DSL and support for Wit.ai natural language processing.
Stars: ✭ 13 (-23.53%)
Mutual labels:  slack
NLog.Slack
An NLog target for Slack - your logs in one place and instantly searchable, everywhere.
Stars: ✭ 46 (+170.59%)
Mutual labels:  slack
slacky-dark
Dark mode theme for Slack desktop clients
Stars: ✭ 24 (+41.18%)
Mutual labels:  slack
magento2-module-slack
Magento 2 Module to send Notifications to a Slack Channel via Webhook.
Stars: ✭ 14 (-17.65%)
Mutual labels:  slack
setup-linux-debian
Installs essential JavaScript development programs.
Stars: ✭ 16 (-5.88%)
Mutual labels:  slack
worldcup-slack-bot
WorldCupBot will notify a Slack channel/group for every match during a FIFA World Cup
Stars: ✭ 33 (+94.12%)
Mutual labels:  slack
slack-php-app-framework
Robust PHP framework for building Slack apps in PHP
Stars: ✭ 29 (+70.59%)
Mutual labels:  slack
SlackLateX
Bot that posts posts Latex pictures
Stars: ✭ 39 (+129.41%)
Mutual labels:  slack
logging
💥 Universal logging support to Tracy / Nette Framework (@nette)
Stars: ✭ 18 (+5.88%)
Mutual labels:  slack
slack-reminder
Slack remind generator
Stars: ✭ 31 (+82.35%)
Mutual labels:  slack
botdarr
Slack/Discord/Telegram/Matrix bot for accessing radarr, sonarr, and lidarr
Stars: ✭ 76 (+347.06%)
Mutual labels:  slack
hubot-code-review
A Hubot script for GitHub code review on Slack.
Stars: ✭ 38 (+123.53%)
Mutual labels:  slack

concourse-slack-notifier License: Apache-2.0 Build Status Docker Pulls Image Informtations

A structured and opinionated Slack notification resource for Concourse. It started as a rewrite of arbourd/concourse-slack-alert-resource in Rust to add a few features, mainly reading the message from a file or being able to send shorter messages that still had a similar format.

The message is built by using Concourse's resource metadata to show the pipeline, job, build number and a URL.

Installing

Use this resource by adding the following to the resource_types section of a pipeline config:

resource_types:

- name: slack-notifier
  type: docker-image
  source:
    repository: mockersf/concourse-slack-notifier

See the Concourse docs for more details on adding resource_types to a pipeline config.

Source Configuration

  • url: Required. Slack webhook URL.
  • channel: Optional. Target channel where messages are posted. If unset the default channel of the webhook is used.
  • concourse_url: Optional. The external URL that points to Concourse. Defaults to the env variable ATC_EXTERNAL_URL.
  • username: Optional. Concourse local user (or basic auth) username. Required for non-public pipelines if using alert type fixed or broke
  • password: Optional. Concourse local user (or basic auth) password. Required for non-public pipelines if using alert type fixed or broke
  • ca_cert: Optional. A CA certificate for the Concourse instance. This is used to validate the certificate of Concourse when the instance's certificate is signed by a custom authority (or itself).
  • ignore_ssl: Optional. This option allows unsecure access to Concourse (not verifying certificates).
  • disabled: Optional. This option will disable all notifications from this resource.
resources:

- name: notify
  type: slack-notifier
  source:
    url: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Behavior

check: No operation.

in: No operation.

out: Send a message to Slack.

Sends a structured message to Slack based on the alert type and mode.

Parameters

  • alert_type: Optional. The type of alert to send to Slack. See Alert Types. Defaults to custom.
  • channel: Optional. Channel where this message is posted. Defaults to the channel setting in Source.
  • message: Optional. The status message at the top of the alert. Defaults to name of alert type.
  • message_file: Optional. The path to a file to use as message.
  • fail_if_message_file_missing: Optional. Will fail if message_file is set but the file is missing. Defaults to false.
  • color: Optional. The color of the notification bar as a hexadecimal. Defaults to the icon color of the alert type.
  • mode: Optional. The amount of information displayed in the message. See Modes. Defaults to normal_with_info.
  • disabled: Optional. This notification is disabled.
  • message_as_code: Optional. Message text will be wrapped in ``` [...] ```, if message is in mode normal or normal_with_info.

basic configuration:

jobs:
  plan:
  - put: notify

with an alert type, a mode and a message

jobs:
  plan:
  - put: notify
    params:
      message: my job failed
      mode: concise
      alert_type: failed

Alert Types

  • custom

  • success

  • failed

  • started

  • aborted

  • fixed

    Fixed is a special alert type that only alerts if the previous build did not succeed. Fixed requires username and password to be set for the resource if the pipeline is not public.

  • broke

    Broke is a special alert type that only alerts if the previous build succeed. Broke requires username and password to be set for the resource if the pipeline is not public.

Modes

Examples notifications with a messages with the different modes:

  • concise

  • normal

  • normal_with_info

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].