I have set up my Jira plugin within Jenkins with working credentials. When I run the following script:
jiraComment body: 'Comment test', issueKey: 'CAT-98'
The build is successful but the Jira ticket does not get a new comment
Edit: There was some problem with the credentials. Also in the Jenkins build, the right URL needed to be selected