DeployJob - clearDeployJobSchedulesByDBKey

DeployJob - clearDeployJobSchedulesByDBKey

Description :

This command clears all schedules set for a Deploy Job. This command works for both basic and advanced Deploy Jobs. After you run this command, you can set new schedules for the Deploy Job, execute the Deploy Job sequentially manually, or execute it through Batch Jobs. This command returns a handle to the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

The handle to the Deploy Job.

Example

The following example shows how to retrieve a Deploy Job and clear the schedules associated with it.

Script


# Name of the existing job. 

JOB_NAME="deployjob" 

# Job group in which Deploy Job is stored. 

JOB_GROUP="/Workspace/DeployJobs" 

# Get the Deploy Job DBKey using the above information. 

JOB_DBKEY=`blcli DeployJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME` 

# Clear the schedules associated with the Deploy Job. 

JOB_DBKEY=`blcli DeployJob clearDeployJobSchedulesByDBKey $JOB_DBKEY` 



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

Comments