netdata/packaging: [ci skip] Make sure you notify us when nightlies changelog generation fails. It is a soft error, but we do want to know about it
Pavlos Emm. Katsoulakis committed
Jul 27, 2019 at 14:23 UTC
8b8790f8c7a91c799a17009803fdb5b68b906610
1 file changed
+7
-1
.travis/nightlies.sh
+7
-1
@@ -38,6 +38,12 @@ if [ ! "${TRAVIS_REPO_SLUG}" == "netdata/netdata" ]; then
38
fi
39
40
echo "--- Running Changelog generation ---"
41
-.travis/generate_changelog_for_nightlies.sh "${LAST_TAG}" "${COMMITS_SINCE_RELEASE}" || echo "Changelog generation has failed, this is a soft error, process continues"
41
+NIGHTLIES_CHANGELOG_FAILED=0
42
+.travis/generate_changelog_for_nightlies.sh "${LAST_TAG}" "${COMMITS_SINCE_RELEASE}" || NIGHTLIES_CHANGELOG_FAILED=1
43
+
44
+if [ ${NIGHTLIES_CHANGELOG_FAILED} -eq 1 ]; then
45
+ echo "Changelog generation has failed, this is a soft error, process continues"
46
+ post_message "TRAVIS_MESSAGE" "Changelog generation job for nightlies failed, possibly due to github issues" "${NOTIF_CHANNEL}"
47
+fi
48
49
exit "${FAIL}"