DeployJob - addNamedServerToJobByJobDBKey


DeployJob - addNamedServerToJobByJobDBKey

Description :

This command adds a server to an existing Deploy Job. You can also perform the same action with Job addTargetServer.

The deployJobKey argument provides a DBKey referring to the deploy job to be modified. The serverName argument identifies the target server to be added.

This command returns a handle to the updated Deploy Job. Note that this handle is different than any existing handle to this Deploy Job. All older handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

deployJobKey

DBKey

Handle to the Deploy Job.

serverName

String

Name of the server to be added.

Example

The following example shows how to add a server to an existing Deploy Job.

Script


SERVER=nocdb1

DEPLOY_JOB_GROUP=/nocdeploy

DEPLOY_JOB_NAME=configdeploy

DEPLOY_JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName $DEPLOY_JOB_GROUP $DEPLOY_JOB_NAME`

DEPLOY_JOB_KEY=`blcli DeployJob addNamedServerToJobByJobDBKey $DEPLOY_JOB_KEY $SERVER`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*