-
Bug
-
Resolution: Fixed
-
Critical
-
Plugin version 1.3.0
Hi,
Rocket Chat API expects a boolean value for titleLinkDownload in attachements object.
cf : https://rocket.chat/docs/developer-guides/rest-api/chat/postmessage/#attachments-detail
When this is true, a download icon appears and clicking this saves the link to file.
This breaks the usage of attachements in the workflow pipeline syntax because it needs a string for titleLinkDownload. (MessageAttachment.java#L46)
e.g. :
rocketSend( attachments: [[ title: 'My repository', color: 'red', text: 'unit test failed :sob:', thumbUrl: '', messageLink: '', collapsed: false, authorName: 'Zevran', authorIcon: '', authorLink: '', titleLink: 'https://github.com', titleLinkDownload: '', imageUrl: '', audioUrl: '', videoUrl: '' ]], channel: 'devops', message: '', avatar: 'https://github.com/fluidicon.png', failOnError: true, rawMessage: true )
Regards