From 0af3938aee7df28eb9fe2d83a71a38d9d4e059d8 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Thu, 4 Dec 2025 23:26:06 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50fa58c..8f009c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,9 +50,13 @@ cleanup_on_failure_job: notify: stage: notify # Should be in a later stage than the job that might fail - when: on_failure # <-- This is the key keyword + when: on_success # <-- This is the key keyword script: - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl?message='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: + - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl?message='build job failed' \ No newline at end of file