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

Jenkins loses history (task page and overview)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Environment:
      Windows 7, Jenkins 1.606, most recent Java runtime x64, a lot of plugins
    • Similar Issues:

      Description

      Between two task runs after changing some config, all history of this task isn't shown on the left pane under the task commands (Build, Configure, ...).
      The links like "view console output of the latest build" are still working, since the builds folder of this task is still existing with (full history).

      When I was browsing through the jenkins log, I found the following exception, pointing to an error while executing "LazyLoadRunMap" (see below).

      This bug is a showstopper for my project, since nobody want to use the newly setup build server.

      This could be the same reason for my missing build history on view level. Some view still have their history, some don't.

      Apr 06, 2015 12:25:58 AM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.resolve(job) in /job/Project_Pack_Data/. Reason: java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Action
      java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Action
      at hudson.model.Run.onLoad(Run.java:348)
      at hudson.model.RunMap.retrieve(RunMap.java:223)
      at hudson.model.RunMap.retrieve(RunMap.java:57)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:465)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:448)
      at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:356)
      at jenkins.model.lazy.LazyBuildMixIn.getBuildByNumber(LazyBuildMixIn.java:226)

        Attachments

          Issue Links

            Activity

            Hide
            fbelzunc Félix Belzunce Arcos added a comment -

            I created these two pull requests in order to avoid null and not desired object as Actions.

            Improve exception management in RunMap#retrieve
            https://github.com/jenkinsci/jenkins/pull/1693

            Remove not actions and logging null and other kind of objects
            https://github.com/jenkinsci/jenkins/pull/1694

            Show
            fbelzunc Félix Belzunce Arcos added a comment - I created these two pull requests in order to avoid null and not desired object as Actions. Improve exception management in RunMap#retrieve https://github.com/jenkinsci/jenkins/pull/1693 Remove not actions and logging null and other kind of objects https://github.com/jenkinsci/jenkins/pull/1694
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/java/hudson/model/RunMap.java
            http://jenkins-ci.org/commit/jenkins/c1e3a64eea8889b5483343f9bc717bb803fd8357
            Log:
            Merge pull request #1693 from fbelzunc/runmap-retrieve

            JENKINS-27748 Improve exception management in RunMap#retrieve

            Compare: https://github.com/jenkinsci/jenkins/compare/5adf5fa9050c...c1e3a64eea88

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/RunMap.java http://jenkins-ci.org/commit/jenkins/c1e3a64eea8889b5483343f9bc717bb803fd8357 Log: Merge pull request #1693 from fbelzunc/runmap-retrieve JENKINS-27748 Improve exception management in RunMap#retrieve Compare: https://github.com/jenkinsci/jenkins/compare/5adf5fa9050c...c1e3a64eea88
            Hide
            danielbeck Daniel Beck added a comment -

            Kanstantsin Shautsou You reopened this, is it still an issue?

            Show
            danielbeck Daniel Beck added a comment - Kanstantsin Shautsou You reopened this, is it still an issue?
            Hide
            dnyaneshwar Dnyaneshwar Sonawane added a comment -

            I am Facing same issue with Jenkins 2.32.2 and Build Pipeline Plugin - 1.5.6..

            Is there any fix for this issue ?

            Show
            dnyaneshwar Dnyaneshwar Sonawane added a comment - I am Facing same issue with Jenkins 2.32.2 and Build Pipeline Plugin - 1.5.6.. Is there any fix for this issue ?
            Hide
            olivergondza Oliver Gondža added a comment -

            Dnyaneshwar Sonawane, I do not see how you can observe the same issue on 2.32.2. This is long fixed and no new info was provided. If you experience a problem please file a new issue with all relevant information including the stacktrace - which will not be the same.

            Show
            olivergondza Oliver Gondža added a comment - Dnyaneshwar Sonawane , I do not see how you can observe the same issue on 2.32.2. This is long fixed and no new info was provided. If you experience a problem please file a new issue with all relevant information including the stacktrace - which will not be the same.

              People

              • Assignee:
                Unassigned
                Reporter:
                kevin75 Kevin Zellner
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: