FileDeployJob - setJobPostCommand

FileDeployJob - setJobPostCommand

Description :

Specifies a command that should be run on each target immediately after the files are copied. 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.

postCommand

String

The string to use as the post-command.

commandMustPass

Boolean

True indicates that the post-command must pass (i.e. have a non-zero exit status).

Example

The following example sets the post-command of an existing job.

Script





FileDeployJob setJobPostCommand JobName /JobGroup "echo 'goodbye world'" true 



Was this page helpful? Yes No Submitting... Thank you

Comments