public class OntrackDslContext extends Object implements javaposse.jobdsl.dsl.Context
Constructor and Description |
---|
OntrackDslContext() |
Modifier and Type | Method and Description |
---|---|
void |
environment(String... names)
Injects environment variables
|
String |
getInjectEnvironment()
Computed environment
|
String |
getInjectProperties()
Properties definition
|
ScriptLocation |
getScriptLocation()
Computed location
|
void |
ignoreFailure()
Ignoring failure
|
void |
ignoreFailure(boolean value)
Ignoring failure
|
boolean |
isIgnoreFailure()
Ignoring failure
|
boolean |
isLog()
Logging
|
boolean |
isSandbox()
Sandbox
|
void |
log()
Enables the log
|
void |
log(boolean log)
Enables or disables the log
|
void |
path(String path)
Using a path
|
void |
properties(String properties)
Properties to inject
|
void |
sandbox()
Enables the sandbox
|
void |
sandbox(boolean sandbox)
Enables or disables the sandbox
|
void |
script(String script)
Using a script
|
public void path(String path)
path
- Path to the scriptpublic void script(String script)
script
- Script contentpublic void environment(String... names)
names
- List of environment variablespublic void properties(String properties)
properties
- Properties to injectpublic void log()
public void log(boolean log)
log
- Enabling or disabling loggingpublic void sandbox()
public void sandbox(boolean sandbox)
sandbox
- Enabling or disabling the sandboxpublic ScriptLocation getScriptLocation()
public String getInjectEnvironment()
public String getInjectProperties()
public boolean isLog()
public boolean isSandbox()
public boolean isIgnoreFailure()
public void ignoreFailure()
public void ignoreFailure(boolean value)
value
- If failures must be ignoredCopyright © 2016–2023. All rights reserved.