Skip to content
Snippets Groups Projects
Commit 002fb7f5 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

message

parent 8fdcab88
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ stages:
GIT_STRATEGY: "none"
NOTIFICATION_ICON: "❓"
NOTIFICATION_TYPE: "unknown"
NOTIFICATION_REVISION: "${CI_COMMIT_SHA}"
NOTIFICATION_REVISION: "${CI_COMMIT_SHORT_SHA}"
image:
name: $CURL_IMAGE
entrypoint: ["/usr/bin/env", "sh", "-c"]
......@@ -22,7 +22,7 @@ stages:
curl \
-X POST \
-H "Content-Type: application/json" \
-d "{\"chat_id\": \"${TELEGRAM_RECEPIENT}\", \"parse_mode\": \"MarkdownV2\", \"disable_web_page_preview\": \"true\", \"text\": \"${NOTIFICATION_ICON} [*${CI_PROJECT_TITLE}*](${CI_PROJECT_URL})\nCI/CD pipeline run [*${NOTIFICATION_TYPE}*](${CI_PIPELINE_URL})\n\\\\- *revision*: ${NOTIFICATION_REVISION}\"}" \
-d "{\"chat_id\": \"${TELEGRAM_RECEPIENT}\", \"parse_mode\": \"MarkdownV2\", \"disable_web_page_preview\": \"true\", \"text\": \"${NOTIFICATION_ICON} *${CI_PROJECT_TITLE}*\nCI/CD pipeline run [${NOTIFICATION_TYPE}](${CI_PIPELINE_URL})\n\\\\- *revision*: ${NOTIFICATION_REVISION}\"}" \
"https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage"
cache: []
dependencies: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment