1

I'm trying to retrieve this value here via groovy, in reference from the GUI Node View

Currently I have a workaround solution by inserting the timestamp into the offline message, and then parsing it out later on.

But I would really like a solution where I would be able to retrieve this date data straight from Jenkins. I have tried the functions

getOfflineCause()

and

getOfflineCauseReason()

Referenced in https://javadoc.jenkins-ci.org/hudson/model/Computer.html, but the timestamps werent included in the output. Thanks in advance.

I have a working solution, but I would like to get help with a more robust one.

Dragonthoughts
  • 2,180
  • 8
  • 25
  • 28

0 Answers0