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

Build reports to be running for "45 yr and counting"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • maven-plugin
    • None
    • Jenkins 1.596
      Maven 3.0.3
      Maven plugin 2.0.5

      I have a multi-module Maven project. While building, modules report to be building for 45 years.

          [JENKINS-26777] Build reports to be running for "45 yr and counting"

          Daniel Beck added a comment -

          Try upgrading Maven plugin to version 2.8.

          Daniel Beck added a comment - Try upgrading Maven plugin to version 2.8.

          akiko_pusu added a comment -

          Hello. After updating jenins from 1.542 to 1.598, I saw the same situation.
          Maven plugin version is now 2.8, but the situation is not changed. This is noot critical for me, but it's pretty strange.

          akiko_pusu added a comment - Hello. After updating jenins from 1.542 to 1.598, I saw the same situation. Maven plugin version is now 2.8, but the situation is not changed. This is noot critical for me, but it's pretty strange.

          The problem occurs because getDurationString in hudson.model.Run is calculating a duration before a build has actually started. In that case starttime is zero and hence the build time is reported as the time since the unix epoch (1970).

          I do not think that anything parses the time so I'd propose that we return "Not started yet" if the build has not started running.

          Richard Mortimer added a comment - The problem occurs because getDurationString in hudson.model.Run is calculating a duration before a build has actually started. In that case starttime is zero and hence the build time is reported as the time since the unix epoch (1970). I do not think that anything parses the time so I'd propose that we return "Not started yet" if the build has not started running.

          Code changed in jenkins
          User: Richard Mortimer
          Path:
          core/src/main/java/hudson/model/Run.java
          core/src/main/resources/hudson/model/Messages.properties
          core/src/test/java/hudson/model/RunTest.java
          http://jenkins-ci.org/commit/jenkins/c2c9a3ef371974ccb5b319c412b35d059974087c
          Log:
          [FIXED JENKINS-26777] Build reports to be running for 45 yr and counting

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Richard Mortimer Path: core/src/main/java/hudson/model/Run.java core/src/main/resources/hudson/model/Messages.properties core/src/test/java/hudson/model/RunTest.java http://jenkins-ci.org/commit/jenkins/c2c9a3ef371974ccb5b319c412b35d059974087c Log: [FIXED JENKINS-26777] Build reports to be running for 45 yr and counting

          Code changed in jenkins
          User: Richard Mortimer
          Path:
          changelog.html
          core/src/main/java/hudson/model/Run.java
          core/src/main/resources/hudson/model/Messages.properties
          core/src/test/java/hudson/model/RunTest.java
          http://jenkins-ci.org/commit/jenkins/7bb61a248e59c3baa8e06ccb85db9a31fd45272b
          Log:
          Merge fix for 'JENKINS-26777'

          Compare: https://github.com/jenkinsci/jenkins/compare/37964df00664...7bb61a248e59

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Richard Mortimer Path: changelog.html core/src/main/java/hudson/model/Run.java core/src/main/resources/hudson/model/Messages.properties core/src/test/java/hudson/model/RunTest.java http://jenkins-ci.org/commit/jenkins/7bb61a248e59c3baa8e06ccb85db9a31fd45272b Log: Merge fix for ' JENKINS-26777 ' Compare: https://github.com/jenkinsci/jenkins/compare/37964df00664...7bb61a248e59

          dogfood added a comment -

          Integrated in jenkins_main_trunk #4054
          [FIXED JENKINS-26777] Build reports to be running for 45 yr and counting (Revision c2c9a3ef371974ccb5b319c412b35d059974087c)

          Result = SUCCESS
          oldelvet : c2c9a3ef371974ccb5b319c412b35d059974087c
          Files :

          • core/src/test/java/hudson/model/RunTest.java
          • core/src/main/resources/hudson/model/Messages.properties
          • core/src/main/java/hudson/model/Run.java

          dogfood added a comment - Integrated in jenkins_main_trunk #4054 [FIXED JENKINS-26777] Build reports to be running for 45 yr and counting (Revision c2c9a3ef371974ccb5b319c412b35d059974087c) Result = SUCCESS oldelvet : c2c9a3ef371974ccb5b319c412b35d059974087c Files : core/src/test/java/hudson/model/RunTest.java core/src/main/resources/hudson/model/Messages.properties core/src/main/java/hudson/model/Run.java

            oldelvet Richard Mortimer
            seigneurin Alexis Seigneurin
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: