[JIRA] [jira-issue-updater-plugin] (JENKINS-31755) Jenkins "Jira Issue Updater Plugin" pasrsing error when "Affects Version/s" is not empty

90 views
Skip to first unread message

ian.sparks@swisscom.com (JIRA)

unread,
Nov 26, 2015, 5:31:04 AM11/26/15
to jenkinsc...@googlegroups.com
Ian Sparkes created an issue
 
Jenkins / Bug JENKINS-31755
Jenkins "Jira Issue Updater Plugin" pasrsing error when "Affects Version/s" is not empty
Issue Type: Bug Bug
Assignee: Ian Sparkes
Components: jira-issue-updater-plugin
Created: 26/Nov/15 10:30 AM
Environment: plug in version 1.17
Labels: plugin
Priority: Major Major
Reporter: Ian Sparkes

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
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

ian.sparks@swisscom.com (JIRA)

unread,
Nov 26, 2015, 5:56:02 AM11/26/15
to jenkinsc...@googlegroups.com
Ian Sparkes started work on Bug JENKINS-31755
 
Change By: Ian Sparkes
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Dec 3, 2015, 1:33:02 PM12/3/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-31755
 
Re: Jenkins "Jira Issue Updater Plugin" pasrsing error when "Affects Version/s" is not empty

Code changed in jenkins
User: Ian Sparks
Path:
README
src/main/java/info/bluefloyd/jira/model/FieldSummary.java
src/main/java/info/bluefloyd/jira/model/VersionSummary.java
src/test/java/info/bluefloyd/jenkins/FieldSummaryTest.java
http://jenkins-ci.org/commit/jira-issue-updater-plugin/9b31cf9c5efef8296b048abed2277d78b51bdeec
Log:
JENKINS-31755: Add Version information to model

scm_issue_link@java.net (JIRA)

unread,
Dec 3, 2015, 1:33:03 PM12/3/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Laszlo Miklosik


Path:
README
src/main/java/info/bluefloyd/jira/model/FieldSummary.java
src/main/java/info/bluefloyd/jira/model/VersionSummary.java
src/test/java/info/bluefloyd/jenkins/FieldSummaryTest.java

JENKINS-31755: Add Version information to model

ashish.rathi@tallysolutions.com (JIRA)

unread,
Mar 16, 2016, 10:46:02 AM3/16/16
to jenkinsc...@googlegroups.com

I am also facing this problem:

JIRA Update Build Step
-------------------------------------------------------
Unable to parse JSON result: {"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields","id":"289777","self":"https://tallyjira.tallysolutions.com/rest/api/2/issue/289777","key":"TE-25246","fields":{"summary":"VAT Internal - TIN is not getting updated in Ledger even after incorrect TIN matches with Master.","versions":[

{"self":"https://tallyjira.tallysolutions.com/rest/api/2/version/12443","id":"12443","description":"Series A Release 5.0","name":"Series A Release 5.0","archived":false,"released":true,"releaseDate":"2015-08-03"}

]}}]}
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"])
at [Source: {"expand":"names,schema","startAt":0,"maxResults":1000,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields","id":"289777","self":"https://tallyjira.tallysolutions.com/rest/api/2/issue/289777","key":"TE-25246","fields":{"summary":"VAT Internal - TIN is not getting updated in Ledger even after incorrect TIN matches with Master.","versions":[

{"self":"https://tallyjira.tallysolutions.com/rest/api/2/version/12443","id":"12443","description":"Series A Release 5.0","name":"Series A Release 5.0","archived":false,"released":true,"releaseDate":"2015-08-03"}

]}}]}; line: 1, column: 603] (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]->info.bluefloyd.jira.model.VersionSummary["releaseDate"])

Seems like an issue with the releaseDate attribute of the affects version field in JIRA.

ian.sparks@swisscom.com (JIRA)

unread,
Mar 17, 2016, 3:48:02 AM3/17/16
to jenkinsc...@googlegroups.com

Yes, that's a problem. I'll mark the unused properties that we might get back as ignored.

ashish.rathi@tallysolutions.com (JIRA)

unread,
Mar 17, 2016, 9:07:03 AM3/17/16
to jenkinsc...@googlegroups.com

Thanks for the prompt reply!!
I am relatively new to Jenkins and thus wanted to know if there is a way to update JIRA issues only when the build process is success.
i.e. skip updating JIRA issues, in case of a build failure.

ian.sparks@swisscom.com (JIRA)

unread,
Mar 17, 2016, 9:45:02 AM3/17/16
to jenkinsc...@googlegroups.com

Yes, that's a problem. I'll mark the unused properties that we might get back as ignored.

Add Comment Add Comment
 

ian.sparks@swisscom.com (JIRA)

unread,
Mar 17, 2016, 9:46:04 AM3/17/16
to jenkinsc...@googlegroups.com
Ian Sparkes edited a comment on Bug JENKINS-31755
Yes, that's a problem.  I 'll mark  made a pull request to make  the  unused  plug in ignore (but accept)  properties  that we might get back as ignored  in the JSON response which are not needed .

ian.sparks@swisscom.com (JIRA)

unread,
Mar 17, 2016, 9:53:01 AM3/17/16
to jenkinsc...@googlegroups.com

Probably you can get the update on build success out of the box by simply putting the Jenkins JIRA Issue updater at the right point in the configuration. I generally include Jenkins Jira Issue Updater at least twice in each build: once as a "Build Post Step" to say that I'm going to try to test it, and once as a "Post-build Action" to say that it was built and tested correctly (we use FitNesse for this).

You might also want to use the "Flexible Publish" plug in if you need finer control of what and when to update.

juliamril@gmail.com (JIRA)

unread,
Apr 28, 2016, 2:48:01 PM4/28/16
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
May 10, 2016, 1:55:02 PM5/10/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: ian.s...@gmail.com
Path:
src/main/java/info/bluefloyd/jira/model/FieldSummary.java
src/main/java/info/bluefloyd/jira/model/IssueSummary.java
src/main/java/info/bluefloyd/jira/model/IssueSummaryList.java
src/main/java/info/bluefloyd/jira/model/PossibleTransition.java
src/main/java/info/bluefloyd/jira/model/TransitionList.java
src/main/java/info/bluefloyd/jira/model/VersionSummary.java
src/test/java/info/bluefloyd/jenkins/ReleaseVersionTest.java
http://jenkins-ci.org/commit/jira-issue-updater-plugin/be65818ef9f5b4f0ea83c2b0c0f760c7d32b10c3
Log:
JENKINS-31755 Allow unknown properties in JIRA model

scm_issue_link@java.net (JIRA)

unread,
May 10, 2016, 1:55:03 PM5/10/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: ian.s...@gmail.com
Path:

pom.xml


src/main/java/info/bluefloyd/jira/model/FieldSummary.java
src/main/java/info/bluefloyd/jira/model/IssueSummary.java
src/main/java/info/bluefloyd/jira/model/IssueSummaryList.java
src/main/java/info/bluefloyd/jira/model/PossibleTransition.java
src/main/java/info/bluefloyd/jira/model/TransitionList.java
src/main/java/info/bluefloyd/jira/model/VersionSummary.java
src/test/java/info/bluefloyd/jenkins/ReleaseVersionTest.java

ashish.rathi@tallysolutions.com (JIRA)

unread,
Oct 21, 2016, 6:00:02 AM10/21/16
to jenkinsc...@googlegroups.com

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

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

garland@alumni.upenn.edu (JIRA)

unread,
May 25, 2018, 9:51:02 AM5/25/18
to jenkinsc...@googlegroups.com

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"])

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

gcolunga@harriscomputer.com (JIRA)

unread,
May 29, 2018, 11:26:02 AM5/29/18
to jenkinsc...@googlegroups.com

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.

garland@alumni.upenn.edu (JIRA)

unread,
May 29, 2018, 8:40:02 PM5/29/18
to jenkinsc...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages