Orchestrator Workflow Action to Find and Remove All Orchestrator Locks

by Simon Sparks · 5 September 2013

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.

You may also like