Nice, but how to convert milliseconds to HH:MM:SS in groovy script, in
particular in pipeline plugin?

Denis Kot


2016-09-19 20:58 GMT+02:00 Baptiste Mathus <m...@batmat.net>:

> long startTime = System.currentTimeMillis()
>
> // Do what you need
>
> long elapsedMillis = System.currentTimeMillis() - startTime;
>
> Then use ^^^^
>
> 2016-09-19 10:34 GMT+02:00 Denis Kot <denis....@gmail.com>:
>
>> 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 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/ms
>> gid/jenkinsci-users/e2cfa64b-e613-4f8b-87fa-7566de88e9f8%40g
>> ooglegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/e2cfa64b-e613-4f8b-87fa-7566de88e9f8%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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/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/ms
> gid/jenkinsci-users/CANWgJS4p51PJOoQLrWSjERApSCvNb9PQe34Fv84
> quyiPfiNaDw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4p51PJOoQLrWSjERApSCvNb9PQe34Fv84quyiPfiNaDw%40mail.gmail.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/CAFGLPOd_zKPGgYu3A7Tqn6zAAHGjZhk0U_p59E8%3DA-G_e%3D2bcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to