How to check if hudson is busy or not? I want to check if any assembly is currently in progress or not.
I am currently using the following:
if(lastBuild == lastCompletedBuild){ // hudson is free } else{ //hudson is busy }
Is this the correct logic? What if the machine reboots / fails after the last build is updated and lastCompletedbuild is not?
Is there any API that can be used directly?
source share