We have many jobs that are configured to run on different platforms and nodes. Jenkins is sending misleading email notification when one job is failed in one node, and later succeed in another node. This has been causing some problem because some developers thought that the failed build was actually fixed but someone else.
Here are the steps to simulate the scenario:
- Configure two nodes in jenkins (e.g. master and solaris).
- Create a free-style job that will run successfully on master but not solaris (e.g. fail if hostname is 'solaris').
This is to simulate the case where there is error specific to the platform or node.
Enable the job to send email notification.
- Execute the job in solaris, this will be failed and an email will be sent.
- Execute the job in master, this will be completed and email will be sent saying that the previous build is fixed.
The email is misleading because it confused the user that the build that was failed on solaris is now fixed.