Script
Purpose¶
Call and list scripts.
Methods¶
Binding name: p6.script
call¶
Execute the named script and waits for it to complete. The current pipeline will be used by the called script.
Syntax
void p6.script.call(String scriptName)
Example
p6.script.call("name")
start¶
Submits the named script for execution and returns its job id as a String. This method DOES NOT wait for the script execution to complete.
Syntax
String p6.script.start(String scriptName)
Tip
You can use the Platform6 job DSL to interact with the started script job using the returned job id
Example
println p6.script.start("name")
exists¶
Checks if the given script exists.
Syntax
boolean p6.script.exists(String scriptName)
Example
println p6.script.exists("name")
list¶
Return a collection of all scripts names.
Syntax
List<String> p6.script.list()
Example
p6.script.list().each() {
println "${it}"
}