jenkins中的subversion轮询失败的电子邮件通知 [英] Email notification for subversion polling failures in Jenkins

查看:699
本文介绍了jenkins中的subversion轮询失败的电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Jenkins的工作失败,因为密码更改,它是超过24小时的subversion轮询。这不是立即显而易见的,当这种情况发生,除非你注意到作业没有运行,并实际检查日志,该构建不会失败,因为它从来没有启动。

We had a job in Jenkins fail it's subversion polling for over 24 hours due to a password change. It's not immediately obvious when this happens unless you notice jobs aren't running and actually check the logs, the build does not fail since it's never kicked off.

一个解决方案来通知Jenkins管理员任何轮询失败?我当前的想法是安排相同或第二个工作,定期启动,以确保登录是有效的。

Has anyone found a solution to notify Jenkins admins for any polling failures? My current idea is scheduling either the same or a second job that kicks off periodically just to make sure that the login is valid.

http://jenkins.mycompany.com/view/Builds/job/Trunk/scmPollLog/

Started on Aug 16, 2013 11:55:35 AM
Received SCM poll call on  for Trunk on Aug 16, 2013 11:55:35 AM
http://svn.mycompany.com/trunk/sources is at revision 76,283
Done. Took 64 ms
No changes



失败日志示例



Example of Failed Log

Started on Aug 16, 2013 11:04:36 AM
Received SCM poll call on  for Trunk on Aug 16, 2013 11:04:36 AM
ERROR: Failed to check repository revision for http://svn.mycompany.com/trunk/sources
org.tmatesoft.svn.core.SVNCancelException: svn: E200015: OPTIONS /trunk/sources failed
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:375)
    ...
Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No credential to try. Authentication failed
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
    ...


推荐答案

Jenkins现在不支持这个,因为轮询发生在作业上下文之外

Jenkins doesn't support this right now, because polling happens outside of a job context.

一些想法:

  • preferred polling must die if you trigger the job from a SVN commit hook, I believe the password failure will happens at svn update, thus during the job. You will be notified. You will have the benefit of getting rid of polling as well.

修复 JENKINS-11760 ;)

这篇关于jenkins中的subversion轮询失败的电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆