-
Bug
-
Resolution: Fixed
-
Minor
-
None
The below code works on master node, but not on the slave, unfortunately I couldn't catch this as I am running a local jenkins without any slaves but just a master with multiple agents.
node { writeFile file: 'abc/test.txt', text: 'Test Attachment - Hello' def attachment = jiraUploadAttachment idOrKey: 'TEST-123', file: 'abc/test.txt', site: 'JIRA' def attachmentId = attachment.data[0].id.toString() attachment = jiraGetAttachmentInfo id: attachmentId, site: 'JIRA' echo attachment.data.toString() jiraDownloadAttachment id: attachmentId, file: "abc/test.txt", override: true, site: 'JIRA' def file = readFile 'abc/test.txt' echo file.toString() jiraDeleteAttachment id: attachmentId, site: 'JIRA' }
PR: https://github.com/jenkinsci/jira-steps-plugin/pull/70