Skip to content
Success

Console Output

Started by upstream project "Power_Fluctuation_Check" build number 101
originally caused by:
 Started by user tbouvet
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 82 days

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

Finished: SUCCESS