我正在尝试使用版本2.89.2将我的Jenkins服务器升级到版本2.107.3。以下是我系统的规格
CentOS 6.8 Java版本" 1.8.0_45"
我尝试使用说明here
手动升级启动Jenkins后,我遇到了错误
`Error
org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml
version not '1.1' (position: START_DOCUMENT seen <?xml
version=\'1.1\'... @1:19)
at
org.xmlpull.mxp1.MXParser.parseXmlDeclWithVersion(MXParser.java:2608)
at org.xmlpull.mxp1.MXParser.parseXmlDecl(MXParser.java:2592)
at org.xmlpull.mxp1.MXParser.parsePI(MXParser.java:2466)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1447)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
atcom.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.jav a:109)
Caused: com.thoughtworks.xstream.io.StreamException: : only 1.0 is
supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?
xml version=\'1.1\'... @1:19) `
似乎Jenkins正在将1.1版本硬编码到config.xml。一种解决方法是直接编辑该config.xml以进行更改
来自:<?xml version='1.1' encoding='UTF-8'?>
收件人:<?xml version='1.0' encoding='UTF-8'?>
我已经读过不支持回滚,有没有其他方法可以避免使用1.0版本?我似乎无法在没有从XML Ver 1.1切换到1.0
的情况下启动Jenkins