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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.596
      Maven 3.0.3
      Maven plugin 2.0.5
    • Similar Issues:

      Description

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

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            Try upgrading Maven plugin to version 2.8.

            Show
            danielbeck Daniel Beck added a comment - Try upgrading Maven plugin to version 2.8.
            Hide
            akiko_pusu 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.

            Show
            akiko_pusu 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.
            Hide
            oldelvet 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.

            Show
            oldelvet 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.
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            dogfood 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
            Show
            dogfood 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: