简体   繁体   中英

Jenkins Groovy Declarative Script fails to publish files to Confluence with 'bad types' error

Is anyone able to make sense of this error? This script to publish files to Confluence during Jenkins jobs was working just fine as recently as a week ago. Now it is throwing errors and my googling hasn't been able to reveal what it's complaining about.

The code (Groovy in a declarative script):

publishConfluence siteName: '', spaceName: '', pageName: '', buildIfUnstable: true, fileSet: 'text.html'

And the error:

[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 version is 7.4.8 btw

The plugin just needed an upgrade to match the Confluence version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM