When a user enters a comment on why he/she moved a node to offline, it'd be great if it'll be automatically prefixed with a data+time stamp:
'Took node offline for investigation of bug 1234'
would be:
'26-May-14 19:00 - Took node offline for investigation of bug 1234'
(Of course, username is also welcome!)
I assume the change is under /core/src/main/java/hudson/model/Node.java :
void setTemporaryOfflineCause(OfflineCause cause) {
{ temporaryOfflineCause = cause; // <---- Add date here. Jenkins.getInstance().save(); // Gotta be a better way to do this }try {
if (temporaryOfflineCause != cause)
} catch (java.io.IOException e)
{ LOGGER.warning("Unable to complete save, temporary offline status will not be persisted: " + e.getMessage()); }}