Jenkins Groovy 声明性脚本无法将文件发布到 Confluence 并出现 'bad types' 错误
Jenkins Groovy Declarative Script fails to publish files to Confluence with 'bad types' error
有人能理解这个错误吗?这个在 Jenkins 工作期间将文件发布到 Confluence 的脚本在一周前工作得很好。现在它抛出错误,我的谷歌搜索无法揭示它在抱怨什么。
代码(Groovy 在声明性脚本中):
publishConfluence siteName: '', spaceName: '', pageName: '', buildIfUnstable: true, fileSet: 'text.html'
错误:
[confluence] Uploading attachments to Confluence page: www.example.com
[confluence] Evaluating fileset pattern: text.html
[confluence] Found 2 workspace artifact(s) to upload to Confluence...
[confluence] Uploading 2 file(s) to Confluence...
[confluence] - Uploading file: text.html (text/html)
ERROR: Unable to upload file...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Bad types (class com.atlassian.confluence.rpc.soap.beans.RemoteAttachment -> long)
e: Confluence 版本是 7.4.8 btw
插件只需要升级以匹配 Confluence 版本。
有人能理解这个错误吗?这个在 Jenkins 工作期间将文件发布到 Confluence 的脚本在一周前工作得很好。现在它抛出错误,我的谷歌搜索无法揭示它在抱怨什么。
代码(Groovy 在声明性脚本中):
publishConfluence siteName: '', spaceName: '', pageName: '', buildIfUnstable: true, fileSet: 'text.html'
错误:
[confluence] Uploading attachments to Confluence page: www.example.com
[confluence] Evaluating fileset pattern: text.html
[confluence] Found 2 workspace artifact(s) to upload to Confluence...
[confluence] Uploading 2 file(s) to Confluence...
[confluence] - Uploading file: text.html (text/html)
ERROR: Unable to upload file...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Bad types (class com.atlassian.confluence.rpc.soap.beans.RemoteAttachment -> long)
e: Confluence 版本是 7.4.8 btw
插件只需要升级以匹配 Confluence 版本。