diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-10 16:28:51 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-12 19:02:27 +0530 |
commit | 5cdb78467cdb7bf21d703f8f941510cfec13ab74 (patch) | |
tree | 32f6f539b3184926481cc7ddc1336bbb0078fa77 /acov.sh | |
parent | 1a02f3c70e8dbf97d230266d0709e7570c7b6228 (diff) |
Report build failures back to gerrit
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'acov.sh')
-rwxr-xr-x | acov.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -84,6 +84,16 @@ rm -rf art/ build/ external/vixl # Download the code repo sync -j${cpu_count} -c +if [ $? -ne 0 ]; then + echo "Error: *** repo sync failed" + if [ -n "$GERRIT_PROJECT" ]; then + rm -rf ~/.ssh/known_hosts + ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts + ssh -p $GERRIT_PORT linaro-big-little-switcher-bot@$GERRIT_HOST gerrit review -p $GERRIT_PROJECT -m '"Automatic Merge Failed"' --code-review -1 $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER + exit -1 + fi +fi + # Configure ccache USE_CCACHE=1 CCACHE_DIR="${base_dir}/.ccache" @@ -104,7 +114,7 @@ if [ -n "$GERRIT_PROJECT" ] && [ $GERRIT_EVENT_TYPE == "patchset-created" ]; th ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts ssh -p $GERRIT_PORT linaro-big-little-switcher-bot@$GERRIT_HOST gerrit review -p $GERRIT_PROJECT -m '"Automatic Merge Failed"' --code-review -1 $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER git reset --hard - echo "Error: *** Merge Failed" + echo "Error: *** patch merge failed" exit -1 fi cd - |