public class ScriptTask extends Task<ScriptTask,ScriptTaskProperties>
conditions, description, requirements, taskEnabled| Constructor and Description |
|---|
ScriptTask() |
| Modifier and Type | Method and Description |
|---|---|
ScriptTask |
argument(String argument)
Sets command line argument to be passed when script is executed.
|
protected ScriptTaskProperties |
build() |
ScriptTask |
environmentVariables(String environmentVariables)
Sets environment variables to be set when script is executed.
|
ScriptTask |
fileFromPath(Path path)
Sets the file path of script to execute.
|
ScriptTask |
fileFromPath(String path)
Sets the file path of script to execute.
|
ScriptTask |
inlineBody(String body)
Sets body of the script to execute.
|
ScriptTask |
inlineBodyFromPath(Path path)
Sets body of the script to execute from a file.
|
ScriptTask |
interpreter(ScriptTaskProperties.Interpreter interpreter)
Selects interpreter that will run the script.
|
ScriptTask |
interpreterBinSh()
Specifies that script will be run by /bin/sh.
|
ScriptTask |
interpreterCmdExe()
Selects that script should be run by cmd.exe.
|
ScriptTask |
interpreterShell()
Specifies that script will be run by an interpreter chosen based on the shebang line of the script.
|
ScriptTask |
interpreterWindowsPowerShell()
Specifies that script will be run by Windows PowerShell.
|
ScriptTask |
location(ScriptTaskProperties.Location location)
Specifies the source of script to run.
|
ScriptTask |
workingSubdirectory(String workingSubdirectory)
Sets a directory the script should be executed in.
|
conditions, description, enabled, requirementspublic ScriptTask location(ScriptTaskProperties.Location location)
public ScriptTask interpreterShell()
public ScriptTask interpreterWindowsPowerShell()
public ScriptTask interpreterBinSh()
public ScriptTask interpreterCmdExe()
public ScriptTask interpreter(ScriptTaskProperties.Interpreter interpreter)
public ScriptTask inlineBody(@NotNull String body)
ScriptTaskProperties.Location#INLINE script location is selected.public ScriptTask inlineBodyFromPath(@NotNull Path path)
ScriptTaskProperties.Location#INLINE script location is selected.path - path to the file with the script textpublic ScriptTask fileFromPath(@NotNull Path path)
ScriptTaskProperties.Location#FILE script location is selected.public ScriptTask fileFromPath(@NotNull String path)
ScriptTaskProperties.Location#FILE script location is selected.public ScriptTask argument(@NotNull String argument)
public ScriptTask environmentVariables(@NotNull String environmentVariables)
public ScriptTask workingSubdirectory(@NotNull String workingSubdirectory)
@NotNull protected ScriptTaskProperties build()
build in class Task<ScriptTask,ScriptTaskProperties>Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.