我在作爲Windows服務運行的Jenkins實例中安裝了JobConfigHistory插件。詹金斯運行良好。Jenkins JobConfigHistory插件 - XML解析錯誤:未找到元素 - 未顯示Diffs
我對作業的配置進行了更改,即添加了一些文本。
在左窗格Job的儀表板頁面上,我點擊了「Job Config History」鏈接。
在右側窗格中翻開新的一頁,具有以下信息:
作業配置歷史
GigaWebFiles
Date Opertion User Show File Restore old config Diff File A File B 2012-11-27_x_x Changed c9807 View as XML (RAW) (*) 2012-11-27_x_x Changed c9807 View as XML (RAW) Restore (*)
有一個「顯示的diff」按鈕僅高於此信息,我點擊它,沒有任何顯示。
當我點擊「查看XML」鏈接時,它給我以下錯誤。
XML Parsing Error: no element found Location: http://jenkins06.server.com:8080/job/GigaWebFiles/jobConfigHistory/configOutput?type=xml&file=D%3A%5Cjenkins04%5Ctomcat6%5Cbin%5C..%5C..%5Cjenkins%5Cconfig-history%5Cjobs%5CGigaWebFiles%5C2012-11-27_19-49-31 Line Number 2, Column 1: ^
任何想法需要糾正的。
我試圖通過移除下JENKINS_HOME/plugins文件夾的.hpi和文件夾卸載插件「JobConfigHistory」(並重新保存在詹金斯實例中的所有作業(除去這個插件的任何引用)。
我實例重新啓動時,也看到了以下詹金斯系統日誌。
Caused by: java.lang.IllegalArgumentException: D:\jenkins04\tomcat6\bin\..\..\jenkins\config-history\jobs\GigaWebFiles\2012-11-27_19-49-31 does not start with D:\jenkins04\tomcat6\bin\..\..\jenkins\config-history or contains '..'
at hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction.getConfigXml(JobConfigHistoryBaseAction.java:158)
at hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction.getFile(JobConfigHistoryBaseAction.java:114)
... 85 more
Caused by: java.lang.IllegalArgumentException: D:\jenkins04\tomcat6\bin\..\..\jenkins\config-history\jobs\GigaWebFiles\2012-11-27_19-49-31 does not start with D:\jenkins04\tomcat6\bin\..\..\jenkins\config-history or contains '..'
at hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction.getConfigXml(JobConfigHistoryBaseAction.java:158)
at hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction.getDiffFile(JobConfigHistoryBaseAction.java:257)
at hudson.plugins.jobConfigHistory.JobConfigHistoryBaseAction.getDiffLines(JobConfigHistoryBaseAction.java:273)
... 123 more