FileDeployJob - setJobPreCommand
FileDeployJob - setJobPreCommand
Description :
Specifies a command that should be run immediately before the source files are copied to the target. The return value is the DBKey of the modified job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobName | String | Name of the File Deploy Job. |
jobGroup | String | The path to the job group containing the File Deploy Job. |
preCommand | String | The string to use as the pre-command. |
commandMustPass | Boolean | True indicates that the pre-command must pass (i.e. have a non-zero exit status). |
Example
The following example sets the pre-command of an existing job.
Script
FileDeployJob setJobPreCommand JobName /JobGroup "echo hello world" true
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*