Added build notifications to Jenkinsfile
This commit is contained in:
1 parent
e2812494a0
commit
4b7136f818
3 files changed
+10
-2
No files matched your search
Vendored
+8
@@ -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 ${project.displayName}, ${project.parent.displayName}, ${currentBuild.projectName}, ${currentBuild.fullProjectName} 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_BASE_NAME} on ${BRANCH_NAME} branch\"}", responseHandle: 'NONE', url: 'https://ntfy.homelab.net', wrapAsMultipart: false
|
||||
}
|
||||
|
||||
cleanup {
|
||||
cleanWs()
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user