aboutsummaryrefslogtreecommitdiff
path: root/robher-aosp.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-10-13 11:53:14 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2017-10-13 11:53:14 +0300
commitdb9d5be930575ab97ab4153949412b1fc4ea6072 (patch)
treefd2b2909eef95a657445f7694ed17c02f254198d /robher-aosp.yaml
parenta3dae01a1b907ebebef11dea399bdf5315b42fd8 (diff)
robher-aosp: email git author and committer on failures
Extract the last git committer and author and send them email on first failure. Change-Id: Ib5289c4ae58494b4a7fbbfc7c39b84d3d80be5fa Signed-off-by: Rob Herring <rob.herring@linaro.org>
Diffstat (limited to 'robher-aosp.yaml')
-rw-r--r--robher-aosp.yaml9
1 files changed, 7 insertions, 2 deletions
diff --git a/robher-aosp.yaml b/robher-aosp.yaml
index a3d3fd3125..58640e349f 100644
--- a/robher-aosp.yaml
+++ b/robher-aosp.yaml
@@ -51,6 +51,11 @@
host: snapshots.linaro.org
- shell:
!include-raw: android-lcr/common/builders.sh
+ - shell:
+ cd external/mesa3d
+ echo "CI_MAIL_RECIPIENTS=$(git --no-pager log -1 --pretty='%cE,%aE')" > ${WORKSPACE}/env_var_parameters
+ - inject:
+ properties-file: env_var_parameters
- shell: |
#!/bin/bash
@@ -105,7 +110,7 @@
- email:
recipients: 'rob.herring@linaro.org vishal.bhoj@linaro.org'
- email-ext:
- recipients: 'rob.herring@linaro.org ${MESA_EMAIL_RECIPIENTS}'
+ recipients: 'rob.herring@linaro.org, ${CI_MAIL_RECIPIENTS}, ${MESA_EMAIL_RECIPIENTS}'
content-type: text
subject: 'errors for mesa master Android build ${BUILD_NUMBER}'
body: |
@@ -118,4 +123,4 @@
ERRORS:
${BUILD_LOG_REGEX, regex="^.*? error: .*?$", linesBefore=0, linesAfter=2, showTruncatedLines=false}
- unstable: true
+ first-failure: true