Added build notifications to Jenkinsfile

This commit is contained in:
ashish committed 2023-11-19 17:40:32 -06:00
1 parent e2812494a0
commit 9194c0dd79
3 files changed
+10 -2

No files matched your search

Vendored
+8
View File
@@ -22,6 +22,14 @@ pipeline {
} }
post { 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 { cleanup {
cleanWs() cleanWs()
} }
+1 -1
View File
@@ -54,7 +54,7 @@ cameras:
front_door_zone: front_door_zone:
coordinates: 964,677,1920,1080,0,1080,539,754 # Near front door coordinates: 964,677,1920,1080,0,1080,539,754 # Near front door
front_door: front_door:
enabled: true enabled: false
ffmpeg: ffmpeg:
inputs: inputs:
- path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0' - path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0'
+1 -1
View File
@@ -96,7 +96,7 @@
dest: '{{docker_build_dir.path}}' dest: '{{docker_build_dir.path}}'
mode: preserve mode: preserve
- name: Build frigate-webcontrol Docker image - name: Build frigate-webcontrol Docker image
ansible.builtin.docker_image: ansible.builtin.ocker_image:
build: build:
path: '{{docker_build_dir.path}}' path: '{{docker_build_dir.path}}'
name: frigate-webcontrol name: frigate-webcontrol