public class PlanExecutionLatch extends Object
getTaskScript() into a plan's script
task, and then executions of that plan will not complete until a timeout of 10 seconds, or releaseExecution(int)
is called with the build number.| Modifier and Type | Class and Description |
|---|---|
static class |
PlanExecutionLatch.Builder |
| Constructor and Description |
|---|
PlanExecutionLatch()
Construct a new PlanExecutionLatch.
|
| Modifier and Type | Method and Description |
|---|---|
File |
awaitLockFileExistence(int buildNumber)
Await for the lock file to be created by the build.
|
static PlanExecutionLatch.Builder |
builder() |
String |
getTaskScript()
Get the task script which will be blocked per-build by this object.
|
void |
releaseExecution(int buildNumber)
Allow the given execution to complete.
|
public PlanExecutionLatch()
public String getTaskScript()
public File awaitLockFileExistence(int buildNumber)
buildNumber - e.g. 1 for the first build of a plan.public void releaseExecution(int buildNumber)
buildNumber - e.g. 1 for the first build of a plan.public static PlanExecutionLatch.Builder builder()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.