Anyone has any idea why jiraComment(issueKey, body) is not working for us
in scripted pipeline, see below for exception message?

Anyone that can confirm that it works fine in a scripted pipeline with
latest version of Jenkins and jira plugin? Otherwise I will file a bug
issue in the next days.

Thanks,
 Stefan.

On Wed, 23 Dec 2020, 17:24 ST, <st.mailingli...@gmail.com> wrote:

> 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/CABwQARtjA5%2Bv3WmCX%3DP4JmsNSpgvXWE%2BD_hmY0EaSJ4XEWavgQ%40mail.gmail.com.

Reply via email to