Missing run times

12 views
Skip to first unread message

Fabian Cenedese

unread,
Feb 5, 2023, 5:32:56 AM2/5/23
to jenkins...@googlegroups.com
Hello

I have a pipeline with several steps. Three of those call a function to do the
work, working in parallel. The job itself works fine, everything is executed
as intended. However the display of the stages on the job page has wrong
run times.

The first of the three stages has correct run time of "44min 43s", and below
in small "(paused for 1ms)". However the other two stages look differently.
Both have a run time of "0ms" and below "(paused for 46min 12s)" and
"(paused for 49min 2s)". Looking at the logs that's about the real run time,
just displayed at the wrong place.

What could be the reason for this wrong display? I'm using the Lockable
Resource Plugin, sometimes with skipIfLocked: true. Could this throw
off the run time calculation? Is there a way to debug this?

Thanks

bye Fabi

Fabian Cenedese

unread,
Feb 6, 2023, 2:50:41 AM2/6/23
to jenkins...@googlegroups.com
Replying to myself: The lock really seems to be the culprit. If the resource
is already locked then the stage doesn't need to wait and can continue with
the rest of the code. However Jenkins/the plugin/whoever still thinks that
this stage is waiting, therefore the wrong timing.

I replaced the lock with some other code and now the run times are
shown correctly.

bye Fabi

Reply all
Reply to author
Forward
0 new messages