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/master/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 the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9c9a5056-6c59-47e5-a720-6220e2005f96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
