Synchronised changes with OS 4.3 branch

This commit is contained in:
Waldemar Zurowski 2020-09-16 10:22:36 +02:00
parent bcce0e9519
commit bcfbe22d1a

View File

@ -248,7 +248,7 @@ pipeline {
// Comparing the dates of the previous and current builds achieves this, // Comparing the dates of the previous and current builds achieves this,
// i.e. we will only send an email for the first build on a given day. // i.e. we will only send an email for the first build on a given day.
def prevBuildDate = new Date( def prevBuildDate = new Date(
currentBuild?.previousBuild.timeInMillis ?: 0).clearTime() currentBuild.previousBuild?.timeInMillis ?: 0).clearTime()
def currentBuildDate = new Date( def currentBuildDate = new Date(
currentBuild.timeInMillis).clearTime() currentBuild.timeInMillis).clearTime()