From 94a3ccfd23c1de61b1577e400dd9664eb1575347 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Tue, 23 Dec 2025 11:18:03 +0100 Subject: [PATCH 1/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39456fe..6c3a008 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,21 @@ stages: # List of stages for jobs, and their order of execution + - notify_start - lint - build - clean - notify variables: GIT_SSH_COMMAND: "ssh -i /home/gitlab-runner/.ssh/id_rsa -o IdentitiesOnly=yes" +notify2: + stage: notify_start # Should be in a later stage than the job that might fail + when: on_failure # <-- This is the key keyword + script: + - column=':' + - echo "${flow_id}" + - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=portainer build job started' + - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp + rules: + - if: '$CI_COMMIT_MESSAGE =~ /build/' lint: stage: lint image: r.sectorq.eu/jaydee/builder-portainer:latest From b385f3db129e6573128447143813a56208276d88 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Tue, 23 Dec 2025 11:18:49 +0100 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c3a008..eb95116 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: # List of stages for jobs, and their order of execution - notify variables: GIT_SSH_COMMAND: "ssh -i /home/gitlab-runner/.ssh/id_rsa -o IdentitiesOnly=yes" -notify2: +notify_start: stage: notify_start # Should be in a later stage than the job that might fail when: on_failure # <-- This is the key keyword script: @@ -64,7 +64,7 @@ cleanup_on_failure_job: script: - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp -notify: +notify_complete: stage: notify # Should be in a later stage than the job that might fail when: on_success # <-- This is the key keyword script: @@ -73,7 +73,7 @@ notify: - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=portainer build job completed' - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp -notify2: +notify_failed: stage: notify # Should be in a later stage than the job that might fail when: on_failure # <-- This is the key keyword script: