【问题标题】:Email notification for subversion polling failures in JenkinsJenkins 中颠覆轮询失败的电子邮件通知
【发布时间】:2013-08-16 16:10:32
【问题描述】:

由于密码更改,我们在 Jenkins 中的一项工作失败了超过 24 小时的颠覆轮询。除非您注意到作业没有运行并实际检查日志,否则当这种情况发生时不会立即明显,构建不会失败,因为它从未启动过。

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

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

失败日志示例

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)
    ...

【问题讨论】:

    标签: svn jenkins continuous-integration


    【解决方案1】:

    Jenkins 目前不支持这个,因为polling happens outside of a job context

    一些想法:

    • 首选 polling must die 如果您从SVN commit hook 触发作业,我相信密码失败会在svn update 时发生,因此在作业期间。您将收到通知。您也将受益于摆脱轮询。

    • 修复JENKINS-11760 ;)

    【讨论】:

      猜你喜欢
      • 2015-10-05
      • 1970-01-01
      • 2017-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多