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

jira-trigger-plugin doesnt work with cloud SAAS JIRA

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • jira-trigger-plugin
    • None
    • Production

      Hi,

      We were using the Jira Trigger plugin to trigger jenkins job when the status changed in Jira request and was working fine with onpremise JIRA. However, When we switched to Jira SAAS and modified jenkins plugin config to point to SAAS Jira version we see the below error in jenkins logs. Please suggest if there is any fix for this issue.

      Apr 17, 2024 5:30:57 PM WARNING org.eclipse.jetty.server.handler.ContextHandler$Context log
      Error while serving https://jenkinsurl/jira-trigger-webhook-receiver/
      java.lang.IllegalArgumentException: Text must not be null or empty
          at groovy.json.JsonSlurper.parseText(JsonSlurper.java:203)
          at groovy.json.JsonSlurper$parseText.call(Unknown Source)
          at com.ceilfors.jenkins.plugins.jiratrigger.webhook.JiraWebhook.processEvent(JiraWebhook.groovy:56)
          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.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
          at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:398)

          [JENKINS-73025] jira-trigger-plugin doesnt work with cloud SAAS JIRA

          muthu k added a comment -

          Hi ceilfors Can you please update on this issue. We are currently stuck with this error. Your help on this will be much appriciated.

          muthu k added a comment - Hi ceilfors Can you please update on this issue. We are currently stuck with this error. Your help on this will be much appriciated.

          muthu k added a comment -

          zaikinpv rodrigc sghill duemir Could you please help with this error. After allowing the Jira SAAS webhook. we receive the below error in jenkins log.

           

          Error while serving https://jenkinsurl/jira-trigger-webhook-receiver/
          groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

          The current character read is 'J' with an int value of 74
          Unable to determine the current character, it is not a string, number, array, or object
          line number 1
          index number 0
          Jenkins-Crumb=XXXf5xxx62xxxx33192&json=%7B%22Jenkins-Crumb%22%3A+%22xxxxxxxx92%22%7D&Submit=Retry+using+POST

          muthu k added a comment - zaikinpv rodrigc sghill duemir Could you please help with this error. After allowing the Jira SAAS webhook. we receive the below error in jenkins log.   Error while serving https://jenkinsurl/jira-trigger-webhook-receiver/ groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object The current character read is 'J' with an int value of 74 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0 Jenkins-Crumb=XXXf5xxx62xxxx33192&json=%7B%22Jenkins-Crumb%22%3A+%22xxxxxxxx92%22%7D&Submit=Retry+using+POST

          Wisen Tanasa added a comment -

          This plugin is open source, feel free to submit a PR and I'll be happy to review it: https://github.com/jenkinsci/jira-trigger-plugin

          Wisen Tanasa added a comment - This plugin is open source, feel free to submit a PR and I'll be happy to review it: https://github.com/jenkinsci/jira-trigger-plugin

          muthu k added a comment -

          Hi ceilfors We are not sure on the issue as we can see that the Jira SAAS webhook is received in the jenkins end but the plugin is not able to process it and trigger the job. We suspect this is a issue with the plugin connecting Jira SAAS as it still works with the onprem Jira version. Is it possible to update the plugin to connect to Jira SAAS as i see few others mentioning the same issue with Jira SAAS.

          muthu k added a comment - Hi ceilfors We are not sure on the issue as we can see that the Jira SAAS webhook is received in the jenkins end but the plugin is not able to process it and trigger the job. We suspect this is a issue with the plugin connecting Jira SAAS as it still works with the onprem Jira version. Is it possible to update the plugin to connect to Jira SAAS as i see few others mentioning the same issue with Jira SAAS.

          Wisen Tanasa added a comment -

          I'm out of capacity to maintain this plugin, however, as I have mentioned before, you can submit a Pull Request to make this plugin work for Jira SAAS, and I'm more than happy to review your changes and merge it.

          Wisen Tanasa added a comment - I'm out of capacity to maintain this plugin, however, as I have mentioned before, you can submit a Pull Request to make this plugin work for Jira SAAS, and I'm more than happy to review your changes and merge it.

            ceilfors Wisen Tanasa
            muthuk muthu k
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: