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

Jenkins "Jira Issue Updater Plugin" pasrsing error when "Affects Version/s" is not empty

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In case of Success(Jira issues not mapped with Affected version/s ):
      JIRA Update Results Recorder

      Updating SA-52 Check_52 Finished: SUCCESS

      =====================================

      In case of failure ( Jira issues mapped with Affected version/s):
      JIRA Update Results Recorder

      Unable to parse JSON result: {"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields","id":"11274","self":"http://benjira01.tally.tallysolutions.com:8080/rest/api/2/issue/11274","key":"SA-52","fields":{"summary":"Check _52","versions":[

      {"self":"http://benjira01.tally.tallysolutions.com:8080/rest/api/2/version/10505","id":"10505","description":"Demo version","name":"1.0","archived":false,"released":false}

      ]}}]} com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields","id":"11274","self":"http://benjira01.tally.tallysolutions.com:8080/rest/api/2/issue/11274","key":"SA-52","fields":{"summary":"Check _52","versions":[

      {"self":"http://benjira01.tally.tallysolutions.com:8080/rest/api/2/version/10505","id":"10505","description":"Demo version","name":"1.0","archived":false,"released":false}

      ]}}]}; line: 1, column: 320](through reference chain: info.bluefloyd.jira.model.IssueSummaryList["issues"]>java.util.ArrayList[0]>info.bluefloyd.jira.model.IssueSummary["fields"]>info.bluefloyd.jira.model.FieldSummary["versions"]>java.util.ArrayList[0])Build step 'JIRA Issue Results Updater' marked build as failure Finished: FAILURE

        Attachments

          Activity

          Hide
          ashu3112 Ashish Rathi added a comment -

          Any progress on the same?
          or any workarounds?
          The status still says "in progress"

          Show
          ashu3112 Ashish Rathi added a comment - Any progress on the same? or any workarounds? The status still says "in progress"
          Hide
          tcolunga Tony Colunga added a comment -

          Was this issue ever resolved? Using plug-in version 1.18 and receiving similar error message that was reported back 3/16/2016:

          com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "releaseDate" (class info.bluefloyd.jira.model.VersionSummary), not marked as ignorable (6 known properties: "archived", "id", "description", "released", "name", "self"])

          Show
          tcolunga Tony Colunga added a comment - Was this issue ever resolved? Using plug-in version 1.18 and receiving similar error message that was reported back 3/16/2016: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "releaseDate" (class info.bluefloyd.jira.model.VersionSummary), not marked as ignorable (6 known properties: "archived", "id", "description", "released", "name", "self"])
          Hide
          aegarland Andrew Garland added a comment -

          Same here.

           
          com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "releaseDate" (class info.bluefloyd.jira.model.VersionSummary), not marked as ignorable (6 known properties: "archived", "id", "description", "released", "name", "self"])

          Show
          aegarland Andrew Garland added a comment - Same here.   com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "releaseDate" (class info.bluefloyd.jira.model.VersionSummary), not marked as ignorable (6 known properties: "archived", "id", "description", "released", "name", "self"])
          Hide
          tcolunga Tony Colunga added a comment -

          Andrew Garland
          I never got any assistance off of here and noticed that the JIRA Issue Updater Plugin pages (https://wiki.jenkins.io/display/JENKINS/Jira+Issue+Updater+Plugin and https://plugins.jenkins.io/jenkins-jira-issue-updater) listed version 1.18 as being the only version available for download while it is shown on the pages that there is a version 1.20 that fixes this issue.
          I tried getting in touch with the maintainer of the plugin with no success and ended up building a newer version of the plugin myself back in Sepetember (I'm assuming it's version 1.20) using the source code available off of Jenkins git hub (https://github.com/jenkinsci/jira-issue-updater-plugin). After building it (using this page as a reference: https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial) I was then able to get a Jenkins plugin type file (.hpi) that I was then able to install into my Jenkins and I haven't run into the issue since.

          Show
          tcolunga Tony Colunga added a comment - Andrew Garland I never got any assistance off of here and noticed that the JIRA Issue Updater Plugin pages ( https://wiki.jenkins.io/display/JENKINS/Jira+Issue+Updater+Plugin  and https://plugins.jenkins.io/jenkins-jira-issue-updater ) listed version 1.18 as being the only version available for download while it is shown on the pages that there is a version 1.20 that fixes this issue. I tried getting in touch with the maintainer of the plugin with no success and ended up building a newer version of the plugin myself back in Sepetember (I'm assuming it's version 1.20) using the source code available off of Jenkins git hub ( https://github.com/jenkinsci/jira-issue-updater-plugin ). After building it (using this page as a reference: https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial ) I was then able to get a Jenkins plugin type file (.hpi) that I was then able to install into my Jenkins and I haven't run into the issue since.
          Hide
          aegarland Andrew Garland added a comment -

          Tony Colunga Thanks for the advice.  It took an amazingly long time to download all of the maven artifacts, but yes, that did the trick!

          Maybe I will take a look at the open PR to allow to append to the custom field instead of over-writing.

          Show
          aegarland Andrew Garland added a comment - Tony Colunga Thanks for the advice.  It took an amazingly long time to download all of the maven artifacts, but yes, that did the trick! Maybe I will take a look at the open PR to allow to append to the custom field instead of over-writing.

            People

            • Assignee:
              isparkes Ian Sparkes
              Reporter:
              isparkes Ian Sparkes
            • Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: