On Fri, Sep 14, 2018 at 2:49 PM pisymbol <pisym...@gmail.com> wrote:

> I need to figure out when was the last job ran in the active pipeline
> running, i.e. the current job.
>
> Putting it another way, I want to programmatically in the current job find
> out  WHEN the LAST job was ran and what was its build RESULT (success or
> fail).
>
> Is there a way to do this?
>
>

Apparently, currentBuild.previousBuild.duration! Sorry about the noise!
-aps

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPpy_fFW%3DND2d4tfWS%2B2Ra%3DzC5YqDUpq31sqRDrL4gg%2BtMomiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to