Ignore errors on Verify status
Currently don't have verify-status gerrit plugin installed, so this
can't run. Regardless, we don't want to fail the build if this fails.
Change-Id: I7a4ca26e7682d59e0c0841320a49c1ad97d7dba7
diff --git a/src/org/trustedfirmware/Gerrit.groovy b/src/org/trustedfirmware/Gerrit.groovy
index 732fe58..05d8398 100644
--- a/src/org/trustedfirmware/Gerrit.groovy
+++ b/src/org/trustedfirmware/Gerrit.groovy
@@ -20,6 +20,7 @@
def verifyStatusInWorkspace(value, verify_name, category) {
withCredentials([usernamePassword(credentialsId: 'VERIFY_STATUS', passwordVariable: 'VERIFY_PASSWORD', usernameVariable: 'VERIFY_USER')]) {
sh("""
+ set +e
if [ -z "\$GERRIT_HOST" ] ; then
echo Not running for a Gerrit change, skipping vote.
exit 0