From 9194c0dd793d70b5230560c6b0d2a3078c52d6d6 Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Sun, 19 Nov 2023 17:40:32 -0600 Subject: [PATCH] Added build notifications to Jenkinsfile --- Jenkinsfile | 8 ++++++++ conf/config.yaml | 2 +- install.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 838965f..0592a00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,14 @@ pipeline { } post { + failure { + httpRequest contentType: 'APPLICATION_JSON', httpMode: 'POST', ignoreSslErrors: true, requestBody: "{\"topic\": \"jenkins\", \"title\": \"Jenkins\", \"priority\": 4, \"icon\": \"https://jenkins.homelab.net/favicon.ico\", \"click\": \"${BUILD_URL}\", \"message\": \"Build failed for ${JOB_NAME.split('/')[-2]} on ${BRANCH_NAME} branch\"}", responseHandle: 'NONE', url: 'https://ntfy.homelab.net', wrapAsMultipart: false + } + + fixed { + httpRequest contentType: 'APPLICATION_JSON', httpMode: 'POST', ignoreSslErrors: true, requestBody: "{\"topic\": \"jenkins\", \"title\": \"Jenkins\", \"priority\": 3, \"icon\": \"https://jenkins.homelab.net/favicon.ico\", \"click\": \"${BUILD_URL}\", \"message\": \"Pipeline fixed for ${JOB_NAME.split('/')[-2]} on ${BRANCH_NAME} branch\"}", responseHandle: 'NONE', url: 'https://ntfy.homelab.net', wrapAsMultipart: false + } + cleanup { cleanWs() } diff --git a/conf/config.yaml b/conf/config.yaml index 1a13df4..722f9f6 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -54,7 +54,7 @@ cameras: front_door_zone: coordinates: 964,677,1920,1080,0,1080,539,754 # Near front door front_door: - enabled: true + enabled: false ffmpeg: inputs: - path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0' diff --git a/install.yaml b/install.yaml index bb287e2..359c6ae 100644 --- a/install.yaml +++ b/install.yaml @@ -96,7 +96,7 @@ dest: '{{docker_build_dir.path}}' mode: preserve - name: Build frigate-webcontrol Docker image - ansible.builtin.docker_image: + ansible.builtin.ocker_image: build: path: '{{docker_build_dir.path}}' name: frigate-webcontrol