The following code finds and removes all Orchestrator locks
var arrLocks = LockingSystem.retrieveAll();
for ( var i = 0; i < arrLocks.length; i++ )
{
var strLock = arrLocks[i];
var arrLock = strLock.split(",");
System.log("arrLocks[" + i + "] = " + arrLock[0] + ", User = " + arrLock[1]);
try
{
LockingSystem.unlock( arrLock[0], "vcdadmin" );
}
catch(strException)
{
System.log("strException = " + strException);
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
