diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2016-10-06 16:52:17 -0500 |
---|---|---|
committer | Daniel Díaz <daniel.diaz@linaro.org> | 2016-10-07 08:59:25 -0500 |
commit | d11f7fb1c7bbd51c0cd771949d95a0cb4175ae45 (patch) | |
tree | 3b1354db310cb1d10e7add8b001043343a5ee175 /linaro-art-tip-build-ARTVixlTest.yaml | |
parent | 3403796755201b5326aeeafc1564e77f96af1e4e (diff) |
Inject Gerrit variables for non-Gerrit emails.
When a job is triggered for reasons other than Gerrit, those
variables are undefined, leading to annoying errors in the
mail logs, as mail notifications are sent to
$GERRIT_CHANGE_OWNER_EMAIL and $GERRIT_EVENT_ACCOUNT_EMAIL,
literally. Of course, those accounts do not exist.
This change defines those variables, to either nothing or
their prior values.
Change-Id: I2f9902b8a5f1263ff6eea1535c7d7cc0abd6894c
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'linaro-art-tip-build-ARTVixlTest.yaml')
-rw-r--r-- | linaro-art-tip-build-ARTVixlTest.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linaro-art-tip-build-ARTVixlTest.yaml b/linaro-art-tip-build-ARTVixlTest.yaml index 828f6a30b5..9e2c991fe8 100644 --- a/linaro-art-tip-build-ARTVixlTest.yaml +++ b/linaro-art-tip-build-ARTVixlTest.yaml @@ -94,6 +94,11 @@ cd ${ANDROID_BUILD_DIR} perl ${ART_BUILD_SCRIPTS_DIR}/jenkins/test_launcher.pl \ ${ART_BUILD_SCRIPTS_DIR}/tests/test_art_vixl.sh + - shell: | + echo "GERRIT_CHANGE_OWNER_EMAIL=${GERRIT_CHANGE_OWNER_EMAIL}" > env_var_parameters + echo "GERRIT_EVENT_ACCOUNT_EMAIL=${GERRIT_EVENT_ACCOUNT_EMAIL}" >> env_var_parameters + - inject: + properties-file: env_var_parameters publishers: - email-ext: recipients: '${GERRIT_CHANGE_OWNER_EMAIL},${GERRIT_EVENT_ACCOUNT_EMAIL},vishal.bhoj@linaro.org,daniel.diaz@linaro.org,julien.duraj@linaro.org' |