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!)
[JENKINS-23197] When entering offline reason for a node, it should be prefixed with a date+time stamp
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Labels | Original: offline | New: lts-candidate offline |
Component/s | New: core [ 15593 ] | |
Component/s | Original: nodeofflinenotification [ 17614 ] |
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()); }}