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

Broken backward compatibility with version 1.14

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Plugin version 1.15 (currently under development) is unable to load builds from version 1.14, see the attached logs. Jenkins 1.532.2 was executed using:

      export JENKINS_HOME=home && java -jar jenkins.war
      

      The following doesn't work too:

      <st:include page="../CppcheckBuildAction/statistics.jelly"/>
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckBuildAction.java
          src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction.java
          src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckResult/index.jelly
          http://jenkins-ci.org/commit/cppcheck-plugin/fcc48c69876fe5abba349bd4b00f26da2302e2d0
          Log:
          JENKINS-22213 Broken backward compatibility with version 1.14

          • Build action's readResolve() computes health report percentage which internally calls getPreviousAction(). It probably confuses the deserializer which results in StackOverflowError exception. The computation replaced by hardcoded value 100% to fix the issue.
          • Relative jelly include <st:include page="../CppcheckBuildAction/statistics.jelly"/> works (probably) only in mvn hpi:run, absolute <st:include page="/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction/statistics.jelly"/> is used instead.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/com/thalesgroup/hudson/plugins/cppcheck/CppcheckBuildAction.java src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction.java src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckResult/index.jelly http://jenkins-ci.org/commit/cppcheck-plugin/fcc48c69876fe5abba349bd4b00f26da2302e2d0 Log: JENKINS-22213 Broken backward compatibility with version 1.14 Build action's readResolve() computes health report percentage which internally calls getPreviousAction(). It probably confuses the deserializer which results in StackOverflowError exception. The computation replaced by hardcoded value 100% to fix the issue. Relative jelly include <st:include page="../CppcheckBuildAction/statistics.jelly"/> works (probably) only in mvn hpi:run, absolute <st:include page="/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction/statistics.jelly"/> is used instead.
          Hide
          mixalturek Michal Turek added a comment -

          Fixed, will be released in version 1.15.

          Show
          mixalturek Michal Turek added a comment - Fixed, will be released in version 1.15.

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              mixalturek Michal Turek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: