Re: Is there any variable for total build time in pipeline plugin?

2016-09-20 Thread Denis Kot
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 : > long startTime = System.currentTimeMillis() > > // Do what you need > > long elapsedMillis = System.currentTimeMilli

Re: Is there any variable for total build time in pipeline plugin?

2016-09-20 Thread Denis Kot
uong 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

Is there any variable for total build time in pipeline plugin?

2016-09-19 Thread Denis Kot
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