I am using Jenkins to deploy in multiple servers. There are 4 backend servers are running. I have a script called deploy.sh
in each server. At the time of deployment, Jenkins create a ssh session and run the deploy.sh
script in each server one by one. But, sometimes it shows error in build console log "Errno : can not allocate memory"
for few servers and then move to the next servers. I am looking for a solution, which will send me an email whenever there is a "error" keyword in the Jenkins log.
I found this link :- https://wiki.jenkins.io/display/JENKINS/Log+Parser+Plugin
But, it doesn't provide email notification and I am looking for a better solution.