Same problem. Getting 0.

2016-09-20 12:32 GMT+02:00 <thomas.lehm...@teamaol.com>:

> Mmhhhh   ... I tried that ... with a sleep of 10 seconds before. The
> result is 0. In opposite to the variant with using System.currentTimeMillis
> which works fine.
>
> On Monday, September 19, 2016 at 9:24:22 PM UTC+2, Cuong Tran wrote:
>>
>> How about:
>>
>>     currentBuild.getDuration()
>>
>> https://github.com/jenkinsci/workflow-support-plugin/blob/ma
>> ster/src/main/java/org/jenkinsci/plugins/workflow/support/
>> steps/build/RunWrapper.java
>>
>> On Monday, September 19, 2016 at 1:34:38 AM UTC-7, Denis Kot wrote:
>>>
>>> I would like to send message from pipeline to hipchat contains total
>>> build time, i.e.:
>>> job-pipeline #3007 SUCCESSFUL after 1 min 42 sec
>>> How can I implement it?
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/n_HRKM26Scg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/9c9a5056-6c59-47e5-a720-6220e2005f96%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/9c9a5056-6c59-47e5-a720-6220e2005f96%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFGLPOdu-_Zj5ysfD-Hnebae2HJ0fQddR23dvHtwKwBE0Mkozg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to