public class ScriptTask extends Task<ScriptTask,ScriptTaskProperties>
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
ScriptTask() |
Modifier and Type | Method and Description |
---|---|
ScriptTask |
argument(@NotNull String argument)
Sets command line argument to be passed when script is executed.
|
protected @NotNull ScriptTaskProperties |
build() |
ScriptTask |
environmentVariables(@NotNull String environmentVariables)
Sets environment variables to be set when script is executed.
|
boolean |
equals(Object o) |
ScriptTask |
fileFromPath(@NotNull Path path)
Sets the file path of script to execute.
|
ScriptTask |
fileFromPath(@NotNull String path)
Sets the file path of script to execute.
|
int |
hashCode() |
ScriptTask |
inlineBody(@NotNull String body)
Sets body of the script to execute.
|
ScriptTask |
inlineBodyFromPath(@NotNull 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.
|
String |
toString() |
ScriptTask |
workingSubdirectory(@NotNull String workingSubdirectory)
Sets a directory the script should be executed in.
|
conditions, description, enabled, requirements
public 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 @NotNull String body)
ScriptTaskProperties.Location#INLINE
script location is selected.public ScriptTask inlineBodyFromPath(@NotNull @NotNull Path path)
ScriptTaskProperties.Location#INLINE
script location is selected.path
- path to the file with the script textpublic ScriptTask fileFromPath(@NotNull @NotNull Path path)
ScriptTaskProperties.Location#FILE
script location is selected.public ScriptTask fileFromPath(@NotNull @NotNull String path)
ScriptTaskProperties.Location#FILE
script location is selected.public ScriptTask argument(@NotNull @NotNull String argument)
public ScriptTask environmentVariables(@NotNull @NotNull String environmentVariables)
public ScriptTask workingSubdirectory(@NotNull @NotNull String workingSubdirectory)
@NotNull protected @NotNull ScriptTaskProperties build()
build
in class Task<ScriptTask,ScriptTaskProperties>
public boolean equals(Object o)
equals
in class Task<ScriptTask,ScriptTaskProperties>
public int hashCode()
hashCode
in class Task<ScriptTask,ScriptTaskProperties>
public String toString()
toString
in class Task<ScriptTask,ScriptTaskProperties>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.