aboutsummaryrefslogtreecommitdiff
path: root/trigger-lkft-notify-developer.yaml
diff options
context:
space:
mode:
authorDan Rue <dan.rue@linaro.org>2018-09-07 11:10:44 -0500
committerDan Rue <dan.rue@linaro.org>2018-09-07 18:32:25 +0000
commit4db0c2a378eb48f3a932b8682328e5da272161f5 (patch)
tree9f1b0dfcb034516a6bcfc6764a232f5b46082975 /trigger-lkft-notify-developer.yaml
parentaf7ae7eeee3902c6548a8895a527f8fec1d7bd48 (diff)
LKFT Developer build email notifications
Initial jobs to provide developer build email notifications. trigger-lkft-notify-developer runs every 5 minutes and looks in qa-reports for new builds that have finished testing, but that have not yet been notified. If it finds any, it calls lkft-notify-developer with the build_url. lkft-notify-developer, in turn, sends a notification to the developer based on a metadata field in the build. Change-Id: Ib29fabc124fbe60362c985ad4132f43c44c0ed90 Signed-off-by: Dan Rue <dan.rue@linaro.org>
Diffstat (limited to 'trigger-lkft-notify-developer.yaml')
-rw-r--r--trigger-lkft-notify-developer.yaml61
1 files changed, 61 insertions, 0 deletions
diff --git a/trigger-lkft-notify-developer.yaml b/trigger-lkft-notify-developer.yaml
new file mode 100644
index 00000000..2986ce9d
--- /dev/null
+++ b/trigger-lkft-notify-developer.yaml
@@ -0,0 +1,61 @@
+- job:
+ name: trigger-lkft-notify-developer
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ disabled: false
+ node: master
+ concurrent: false
+ display-name: 'Trigger LKFT Notify Developer'
+ scm:
+ - git:
+ url: https://github.com/Linaro/lkft-tools.git
+ refspec: +refs/heads/*:refs/remotes/origin/*
+ name: origin
+ branches:
+ - refs/heads/master
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ clean:
+ before: true
+ triggers:
+ - timed: 'H/5 * * * *'
+ wrappers:
+ - timeout:
+ timeout: 60
+ - timestamps
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ pip install --user -r requirements.txt
+
+ python ./bin/trigger_lkft_notify_developer.py
+
+ - trigger-builds:
+ - project: lkft-notify-developer
+ block: false
+ parameter-factories:
+ - factory: filebuild
+ file-pattern: "*.build_notify_parameters"
+ no-files-found-action: SKIP
+
+ publishers:
+ - workspace-cleanup:
+ include:
+ - "*_parameters"
+ - email:
+ recipients: 'dan.rue@linaro.org daniel.diaz@linaro.org'