Handle the case where the build was successful so no failed artifacts
were determined. DO NOT cause the build to return as UNSTABLE.
Change-Id: I1eabdb014b8952040efb329fa61d5575fb585bcf
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
elif [ "${#grouplist[@]}" -gt 1 ]; then
GROUPLIST="NOTE: The artifactId: $ARTIFACT_ID matches multiple groups: ${grouplist[*]}"
else
- echo "Failed to determine project.groupId using xpaths"
+ echo "Unable to determine project.groupId using xpaths"
fi
else
- echo "Failed to determine ARTIFACT_ID"
- exit 1
+ echo "Unable to determine failed ARTIFACT_ID. Build likely successful or bug in this script."
+ exit 0
fi
# Construct email subject & body