This page describes how to configure a script executable for a Task.
On this page:
Configuring a Script Executable for a Task
To configure a script builder for a Task:
Navigate to the Task configuration for the Job (this will be the default Job if creating a new Plan).
Click the name desired Task or click 'Add Task' if creating a new Task.
In the 'Executable' dropdown, select the script executable that you wish to configure for this plan (e.g. "Script1"). The executable that you select will become one of the Task's capability requirements (and hence, one of the Job's requirements). For details, please see Configuring a Job's Requirements.
The screen will refresh to display the settings specific to script executables:
'Script location' — Select the location of the script file.
If you selected 'File', enter the location of the file in the 'Script file' field. This can be either relative to the repository root of the plan, or absolute. You can include variables (see Using Global, Plan or Build-specific Variables).
If you selected 'Inline', enter the script in the 'Script body' field.
'Argument' — Specify the relevant argument to pass to the script. Note that arguments which contain spaces must be quoted. You can include variables (see Using Global, Plan or Build-specific Variables).
If required, update the system environment variables and working directory settings: