I\'m configuring a process of Android application build by using Jenkins pipeline.
At the beginning and the end of the build, a message is sent to a relevant Slack c
Above @Evan's answers works perfectly fine to me to find out/show the build time duration of the Jenkins job.
echo ${currentBuild.durationString.replace(' and counting', '')}