menu
Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Drupal
view-forward
# PHP
view-forward
# Python
view-forward
# Ruby
view-forward
# WordPress
view-forward
Team

Slack notifications fails to pass environment parameters

November 12, 2019 at 9:26pm

Slack notifications fails to pass environment parameters

November 12, 2019 at 9:26pm (Edited 9 months ago)
Hi, I'm trying to get slack notifications to work but fail to pass the params... Does anyone has an idea?
- name: Notify Slack - End
type: command
command: |
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Wodby deploy finished\n- Application: $WODBY_INSTANCE_NAME\n- Instance: $WODBY_ENVIRONMENT_TYPE"}' \
https://hooks.slack.com/services/xxx/xxx/xxx

November 19, 2019 at 3:43am
You have shell variables in single quotes https://stackoverflow.com/a/27701642/1826109
  • reply
  • like