diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1707e73..17a50e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,17 +52,17 @@ notify: stage: notify # Should be in a later stage than the job that might fail when: on_success # <-- This is the key keyword script: - - column='"' + - column=':' - echo "${flow_id}" - - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl?message=${column}build job completed${column} + - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl -d '{"message"${column} "build job completed"}' notify2: stage: notify # Should be in a later stage than the job that might fail when: on_failure # <-- This is the key keyword script: - - column='"' + - column=':' - echo "${flow_id}" - - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl?message=${column}build job failed${column} + - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl -d '{"message"${column} "build job failed"}' rules: - if: '$CI_COMMIT_MESSAGE =~ /build/' \ No newline at end of file