The Estimated Remaining Time isn't computed anymore since Jenkins 2.92

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The Estimated Remaining Time isn't computed anymore since Jenkins 2.92

blanger
Hello!

The current build of a job is shown in the "Build History" of Jenkins. The progress bar there worked for my builds until Jenkins 2.91 - then it stopped working and now it shows only a dummy progress bar with the tooltip "Estimated Remaining Time: N/A". But the Stage View continues to show the correct time.


As far as I can track down the problem, there is a class hudson.Executor. When my job is started it is catched directly in line 431 (AsynchronousExecution) and afterwards the "N/A" duration is set in line 462.

My Jenkinsfile looks something like
node {
   
try {
        stageUpdateProject
()
       
        docker
.build('build-environment', "--pull .").inside() {
           
// test, build, deploy ...
       
}
   
} finally {
        sendStatusMail
()
   
}
}


Does anyone have the same issue or can give me a hint what I could do?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b4db2af6-7727-4468-b5c4-de5994efc531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: The Estimated Remaining Time isn't computed anymore since Jenkins 2.92

blanger
Resetting the executableEstimatedDuration only when there is no asynchrounous execution seems to solve the problem. So the resulting Code in hudson.model.Executor is

[...]
458       } finally {
459            if (asynchronousExecution == null) {
460                finish2();
461                executableEstimatedDuration = DEFAULT_ESTIMATED_DURATION;
462            }
463        }
[...]




--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/107123fc-f7c3-432c-bf83-60fa644df462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: The Estimated Remaining Time isn't computed anymore since Jenkins 2.92

Daniel Beck

> On 25. Jan 2018, at 06:08, blanger <[hidden email]> wrote:
>
> Resetting the executableEstimatedDuration only when there is no asynchrounous execution seems to solve the problem. So the resulting Code in hudson.model.Executor is

Could you file a bug in Jira and a pull request with your change?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7208CB6B-5E4B-4E63-99F0-5C4182DA2FE1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.