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 {
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()
}
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -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