I want to get Getting current timestamp in inline pipeline script using pipeline plugin of hudson. For setting up build display name.
Inline groovy script used:
you can also use this, I needed this in ms so:
echo "TimeStamp: ${currentBuild.startTimeInMillis}" echo "TimeStamp: ${Util.getTimeSpanString(System.currentTimeMillis())}"