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

328 views
Skip to first unread message

blanger

unread,
Jan 24, 2018, 8:41:33 AM1/24/18
to Jenkins Users
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!

blanger

unread,
Jan 25, 2018, 12:08:59 AM1/25/18
to Jenkins Users
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        }
[...]




Daniel Beck

unread,
Jan 25, 2018, 3:10:56 AM1/25/18
to jenkins...@googlegroups.com

> On 25. Jan 2018, at 06:08, blanger <berno....@web.de> 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?

Reply all
Reply to author
Forward
0 new messages