2016-08-02 68 views
0

我在我的windows机器上有一个詹金斯的本地设置。 尝试添加电子邮件ext插件,但会显示附件中的错误。如何在jenkins中配置电子邮件通知?

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/email-ext/2.44/email-ext.hpi 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1153) 
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1650) 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1848) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1624) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/email-ext/2.44/email-ext.hpi 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 

人工手动下载的.hpi并把它添加到插件的文件夹 仍然是无法看到的电子邮件通知部分,并在生成后的行动步骤的动作。

导航管理jenkins->配置系统 - >电子邮件通知部分不显示

+0

请给一些截图,以便清楚地了解您的问题。 – 2016-08-02 10:25:45

+0

@ NectarM-詹金斯设置中没有任何部分作为电子邮件通知。并且无法在添加依赖项后手动重新启动它.Jenkins无法按当前配置重新启动。显示为 –

回答

1

请安装依赖插件 &尝试。 (Matrix-project,config-file-provider,mailer,workflow-step-api,junit,analysis-core,token-macro,workflow-job)。

https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin

+0

在添加上述所有内容后无法重新启动jenkins:Jenkins无法按照当前配置重新启动自身。显示在使用http://25.163.2.201:9090/restart –

+0

停止詹金斯服务器,下载所有hpi和复制插件文件夹中,再次启动。它会工作。你不能重新启动个人依赖项插件。 – diamond

0

,因为它似乎你被公司代理堵塞,最好的办法是找到一种方法,与企业的代理进行身份验证(如果你不是,我不是确定Jenkins代理是否支持NTLM),或者了解如何访问Jenkins插件中心,而不是手动下载所有插件及其依赖关系。

如果需要使用NTLM身份验证,它可能是一个好主意,或者:

  1. 安装詹金斯作为一种服务和运行服务作为自己
  2. 使用Cntlm有一个平台&工具无关使用NTLM进行身份验证的方式。