Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin fails to add comment on JIRA issue even if it adds link to JIRA issue on "Changes" tab in Jenkins #395

Open
xalbillos opened this issue Dec 17, 2021 · 4 comments

Comments

@xalbillos
Copy link

Hi,

I have followed these steps:

  1. Under Jenkins > Manage Jenkins > Jira, I have configured the plugin and used the "Validate Settings" button. It returns "Success".
  2. Then, I have tried with a freestyle project and added a post-build action "Jira: Update relevant issues" and selected "Explicit selector". Then, added a specific ticket. Running that freestyle project job adds a comment on the related JIRA ticket. Everything fine until now.
  3. I have configured the JIRA plugin inside a multi-branch pipeline. I have set the "issue pattern" to blank, to make sure I don't fail the regular expression and it uses the default one. I have checked the "Update Relevant Jira Issues For All Build Results" checkbox. After building from a commit that includes a JIRA ticket in the commit message, I go to the "Changes" tab of that build and see the JIRA ticket becomes a link to JIRA. I understand this means the plugin understands the ticket pattern and connects with our JIRA to form the URL. But on the JIRA ticket this run by the multi-branch pipeline branch doesn't add a comment to the JIRA ticket.

How can I troubleshoot this and see what's happening and what could be wrong ?
Thanks a lot for your help !

@rantoniuk
Copy link
Contributor

What do you see in the build logs?

@xalbillos
Copy link
Author

@rantoniuk
I don't see any logs from the plugin, no error, no nothing. Is there a way to activate a verbose mode ?

@shaishap
Copy link

This issue happens for us as well.
I don't see any error in the log. Once in the log, I did see the
org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{'
error, but I no longer see it.
It simply does nothing to the jira issue.
We use jira datacenter version 8.20.0, and jira-plugin 3.7.1

@rantoniuk
Copy link
Contributor

Can you share your Jenkinsfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants