Skip to content

Commit a3ca32f

Browse files
committed
add timestamp to DONE file
1 parent cabb30f commit a3ca32f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/groovy/nfcmgg/plugin/DoneObserver.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class DoneObserver implements TraceObserverV2 {
5151
if (session.success) {
5252
Path doneFile = location.resolve('DONE')
5353
checkParent(doneFile)
54-
doneFile.text = ''
54+
/* groovylint-disable-next-line LineLength */
55+
doneFile.text = "Pipeline completed on ${new Date().format('dd/MM/yyyy')} at ${new Date().format('HH:mm:ss')}"
5556
}
5657
}
5758

0 commit comments

Comments
 (0)