Skip to content
Success

Console Output

Started by upstream project "Power_Fluctuation_Check" build number 96
originally caused by:
 Started by user Jeremy Enos
Running as SYSTEM
Building in workspace /var/lib/jenkins/jobs/Check_Uptime_Login_Node/workspace
[SSH] script:

UPTIME=`uptime | awk '{ print $3 }' `
if [[ $UPTIME -eq 0 ]]; then
 echo "System has been up for zero days!"
 exit 1
else 
 echo "System has been up for $UPTIME days"
fi

[SSH] executing...
System has been up for 74 days

[SSH] completed
[SSH] exit-status: 0

Finished: SUCCESS