2016-08-02 92 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進行身份驗證的方式。
相關問題