Add notification rule that checks build status text
We'd like to be able to notify developers when their changes cause builds to generate warning messages (e.g. from the compiler) but without actually failing the builds.
I can see how to do this with a (probably non-trivial) Python script, but it would be much simpler if we could just use a service message to change the final build status text to something like "Success with warnings" and have a notification rule that allowed us to specify this text as another option to trigger an email to the relevant developers.
Please sign in to leave a comment.
It would be hard to do as is, but there might be a way. If you treat warnings as errors and they fail builds, you can configure the notification to be triggered "when the first error occurs". Then at the end, check for errors via a script and send a service message to mark the build as successful as you pointed out.
Other than that, I'm afraid you will need to run a definitely non-trivial script for it.