I am trying to add a comment to a jira issue from my scripted pipeline with
this command:
jiraComment(issueKey: 'FREF-363', body: 'My super jira comment')

And I'm getting the following error:
17:07:25  Caught exception (exception: 'groovy.lang.MissingMethodException:
No signature of method: java.lang.String.call() is applicable for argument
types: (java.util.LinkedHashMap) values: [[issueKey:FREF-363, body: My
super jira comment]]
17:07:25  Possible solutions: wait(), chars(), any(), wait(long),
any(groovy.lang.Closure), each(groovy.lang.Closure)', message: 'No
signature of method: java.lang.String.call() is applicable for argument
types: (java.util.LinkedHashMap) values: [[issueKey:FREF-363, body:My super
jira comment]]
17:07:25  Possible solutions: wait(), chars(), any(), wait(long),
any(groovy.lang.Closure), each(groovy.lang.Closure)') during build, current
build result is null.
[Pipeline] node
I am inside a node{} declaration, and I am not inside a @NonCPS method.
What is wrong with my pipeline code?

Documentation for the step is here, I have basically copy&paste'd from here:
https://github.com/jenkinsci/jira-plugin/blob/master/COMPATIBILITY.md#commentstep

Also these other jira commands work just fine from the same scripted
pipeline:
* jiraSearch
* step([$class: 'hudson.plugins.jira.JiraIssueUpdateBuilder', jqlSearch: …
])

And we are using Jenkins v2.271 and jira-plugin v3.1.3 (latest).

Any help much appreciated, I have the feelign I am missing something very
simple here ;-)
 stefan.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABwQARucg2-quvmynFJu%2BSXnZrkG8QuhKnZJPOB8NyemownRVA%40mail.gmail.com.

Reply via email to