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

rules

parent 2ef4c8c4
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,9 @@ telegram-notification_success: ...@@ -33,7 +33,9 @@ telegram-notification_success:
NOTIFICATION_ICON: "✅" NOTIFICATION_ICON: "✅"
NOTIFICATION_TYPE: "succeeded" NOTIFICATION_TYPE: "succeeded"
rules: rules:
- when: on_success - if: '( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" ) && $CI_COMMIT_BRANCH =~ $CUSTOM_BRANCHES'
when: on_success
- when: never
telegram-notification_failure: telegram-notification_failure:
extends: .common_telegram-notification extends: .common_telegram-notification
...@@ -41,4 +43,6 @@ telegram-notification_failure: ...@@ -41,4 +43,6 @@ telegram-notification_failure:
NOTIFICATION_ICON: "💥" NOTIFICATION_ICON: "💥"
NOTIFICATION_TYPE: "failed" NOTIFICATION_TYPE: "failed"
rules: rules:
- when: on_failure - if: '( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" ) && $CI_COMMIT_BRANCH =~ $CUSTOM_BRANCHES'
when: on_failure
- when: never
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment