Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61488

Jenkins Build not getting triggered even after receiving Jira Webhook Callback

    Details

    • Similar Issues:

      Description

      Hi Wisen Tanasa

      I have configured my jenkins https url in jira's webhook. Also I am receiving "Received Webhook callback from comment. Event type: comment_created" in my jenkins logs when I add a comment in my Jira ticket.

      However the build is not getting triggered. Could you please help me in fixing this?

      We are on Jira cloud and my jenkins is running on Ec2 Instance.I have followed all the Troubleshooting steps listed on page https://github.com/jenkinsci/jira-trigger-plugin

      I am not able to understand  "If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check." this part from troubleshooting steps.

      My Project name in Jira is "TEST_PROJECT" and Key is "TP".  Please refer amrut_config.png image to view the configuration done in jenkins job.Also find attached the webhook configuration(amrut_webhook.png) done at Jira end.

      Attached are the logs (amrut_jenkins_Logs)from jenkins post commenting in Jira issue .

      Please let me know if anything else is needed from my end.

       

        Attachments

        1. amrut_config.png
          amrut_config.png
          50 kB
        2. amrut_jenkins_Logs
          6 kB
        3. amrut_webhook.png
          amrut_webhook.png
          48 kB
        4. Jira_Trigger_Config.png
          Jira_Trigger_Config.png
          22 kB

          Issue Links

            Activity

            Hide
            amrutdengre Amrut dengre added a comment -

            Hi Wisen Tanasa,

            Thanks for your promt responses.

            I have checked the checkbox for 'Build when comment is added to JIRA' and kept JQL Filter as ---> project = "TEST_PROJECT"

            and comment pattern as -----> CODEBUILD but no luck.

            Also please find attached the Jira Trigger Configuration that I had already done before reporting the issue. Please refer once Jira_Trigger_Config.png

             

             

            Show
            amrutdengre Amrut dengre added a comment - Hi Wisen Tanasa , Thanks for your promt responses. I have checked the checkbox for 'Build when comment is added to JIRA' and kept JQL Filter as ---> project = "TEST_PROJECT" and comment pattern as -----> CODEBUILD but no luck. Also please find attached the Jira Trigger Configuration that I had already done before reporting the issue. Please refer once Jira_Trigger_Config.png    
            Hide
            amrutdengre Amrut dengre added a comment -

            I am Jira admin and have added my own credentials.

            Show
            amrutdengre Amrut dengre added a comment - I am Jira admin and have added my own credentials.
            Hide
            amrutdengre Amrut dengre added a comment -

            Hi Wisen Tanasa,

            Just checked the 'All Logs' in jenkins from UI and can see below error - 

            Error while serving https://XXXX.udchalo.com/jira-trigger-webhook-receiver/ org.codehaus.jettison.json.JSONException: JSONObject["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:35) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:27) at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseOptionalArray(IssueJsonParser.java:166) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:222) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser.parse(WebhookChangelogEventJsonParser.groovy:35) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:63) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)

            Caused: java.lang.reflect.InvocationTargetException at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)

            Show
            amrutdengre Amrut dengre added a comment - Hi Wisen Tanasa , Just checked the 'All Logs' in jenkins from UI and can see below error -  Error while serving https://XXXX.udchalo.com/jira-trigger-webhook-receiver/ org.codehaus.jettison.json.JSONException: JSONObject ["name"] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:35) at com.atlassian.jira.rest.client.internal.json.AttachmentJsonParser.parse(AttachmentJsonParser.java:27) at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseOptionalArray(IssueJsonParser.java:166) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:222) at com.atlassian.jira.rest.client.internal.json.IssueJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser.parse(WebhookChangelogEventJsonParser.groovy:35) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.WebhookChangelogEventJsonParser$parse.call(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:63) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook$processEvent.callCurrent(Unknown Source) at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.doIndex(JiraWebhook.groovy:51) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) Caused: java.lang.reflect.InvocationTargetException at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:400) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
            Hide
            amrutdengre Amrut dengre added a comment -

            Any thoughts for fixing this?

            Show
            amrutdengre Amrut dengre added a comment - Any thoughts for fixing this?
            Hide
            ceilfors Wisen Tanasa added a comment -

            Thanks for all the details. Apologies, but apparently based on the error above, this is a duplicate of JENKINS-58987, closing this.

            Show
            ceilfors Wisen Tanasa added a comment - Thanks for all the details. Apologies, but apparently based on the error above, this is a duplicate of  JENKINS-58987 , closing this.

              People

              • Assignee:
                ceilfors Wisen Tanasa
                Reporter:
                amrutdengre Amrut dengre
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: