Delivery Management Commands
Execute Delivery
This command runs a delivery in the currently connected runtime.
execute delivery <delivery>
[mode <memory | standalone>]
[configuration <configuration>]
[var <variable_path> <variable_value>]
[synch]
[sessionName <session_name>]
[repository <repository_name>]
[format <format>]
[logLevel <log_level>]
[returnCodePath <variable_name>]
Option | Mandatory | Description |
---|---|---|
|
No |
The memory mode starts the delivery in the current runtime process and the standalone mode starts the delivery in a separate process. |
|
No |
When working with multi-configuration deliveries, this option provides the configuration to use. |
|
No |
Pass variables value to the delivery. This option may be used multiple times. |
|
No |
Wait for the session to complete before proceeding. |
|
No |
Session name. If no name is provided, the session is named after the delivery. |
|
No |
If your runtime is configured to use a deliveries repository, you can provide the repository name. The delivery is searched in the specified repository. |
|
No |
Customized format for the command output. The following columns are
available: |
|
No |
Level of logging used for the session. See log level for more details about the various log level values. |
|
No |
Path of a session variable that contains the return code of the delivery when the execution completes. |
execute delivery myDeliv var ~/myVar1 value1 var "~/my var 2" "value 2"
execute delivery myDeliv repository MyRepo
execute delivery myDeliv format "%name, %id, %returncode"
execute delivery myDeliv format "%name | %id | %begindate | %enddate | %status | %returncode | %errormessage"
Schedule Delivery
This command schedules a delivery on the currently connected Runtime.
schedule delivery <delivery>
[scheduleName <schedule_name>]
[sessionName <session_name>]
[jobName <job_name>]
[with command]
[on host <host_name>]
[port <host_port>]
[start <start_date>]
[end <end_date>]
[var <path> <value>]
[var ...]
[configuration <configuration>]
[logLevel <log_level>]
cron <cron_expression>
Option | Mandatory | Description |
---|---|---|
|
No |
Name that identifies this schedule. It is automatically generated if not set. |
|
No |
Session name. If no name is provided, the session is named after the delivery. |
|
No |
Internal name for the scheduled job. This is by default the delivery name. See below for more information. |
|
No |
Executes the delivery with the command-line tool. If no set, the delivery is started in memory in the currently connected runtime. |
|
No |
Hostname or address of the runtime host. If not set the currently connected runtime is used. |
|
No |
Runtime port. |
|
No |
Start date of the schedule. |
|
No |
End date of the schedule. |
|
No |
When working with multi-configuration deliveries, this option provides the configuration to use. |
|
No |
Pass variables value to the delivery. This option may be used multiple times. |
|
No |
Level of logging used for the sessions. See log level for more details about the various log level values. |
|
Yes |
Cron expression to run the schedule. |
schedule delivery myDeliv
start "2015/12/10 12:55:22"
end "2015/12/25 12:55:22"
var ~/myvar myValue
cron "0 15 10 * * ? *"
The jobName
option uniquely identifies schedules and is used as a semaphore. You cannot run multiple schedules with the same job name at the same time. If this happens, only one is started.
This avoids starting multiple scheduled deliveries at the same time if they do not make functional sense. Since the job name defaults to the delivery name, this behavior is the default one when you have multiple schedules for the same delivery.
If you want to run simultaneously multiple instances of a delivery on parallel schedules, make sure to specify a different job name for the simultaneous schedules.
schedule delivery myDeliv var ~/myvar myValue01 cron "0 15 10 * * ? *"
schedule delivery myDeliv var ~/myvar myValue02 cron "0 15 10 * * ? *"
schedule delivery myDeliv jobName job01 var ~/myvar myValue01 cron "0 15 10 * * ? *"
schedule delivery myDeliv jobName job02 var ~/myvar myValue02 cron "0 15 10 * * ? *"
Get Repositories
This command return the list of a deliveries repositories configured for the runtime.
get repositories
Get Deliveries
This command return information about deliveries available to the currently connected runtime.
get deliveries [id <id1,id2,idn>]
[format <format>]
[repository <repository>]
Option | Mandatory | Description |
---|---|---|
|
No |
Comma-separated list of delivery IDs. |
|
No |
Comma-separated list of columns to return in the output. The available columns are |
|
No |
If your runtime is configured to use a deliveries repository, you can provide the repository name. The deliveries are searched in the specified repository. |
get deliveries format %name,%configuration,%builddate,%exportdate
List Deliveries
This command returns a list of deliveries available to the currently connected runtime.
get list deliveries [to <file>]
Option |
Mandatory |
Description |
|
No |
Exports the output to a file. |
List Delivery Schedules
This command returns information about delivery schedules, and optionally exports it in a file. Job names do not appear in the list.
get delivery schedules <deliveryName> [to <file>]
Option |
Mandatory |
Description |
|
No |
Exports the result to a file. |
Remove Delivery
This command removes a delivery from the runtime. This operation deletes the delivery file from the runtime deliveries folder.
remove delivery <name> [repository <repository>]
Option | Mandatory | Description |
---|---|---|
|
Yes |
Name of the Delivery to remove. |
|
No |
If your runtime is configured to use a deliveries repository, you can provide the repository name. The deliveries are searched and removed from the specified repository. |