Deploy Plugin
The Deploy plugin for Release allows you to start a control task or to start a deployment of an application on Deploy. It also provides the functionality to trigger undeployment of an application already deployed on Deploy.
If you are using the community supported xlr-xldeploy-plugin
and want to migrate to the offically supported xlr-xld-plugin
, refer to Migrating from the community Deploy plugin for Release to the officially supported plugin.
Requirements
The Deploy plugin for Release requires Release version 6.2.x or later to be installed and is compatible with Deploy version 5.5.x or later.
Installation
- Download the Release Deploy plugin.
- Install the plugin in Release.
Configure Deploy Server (Connections)
- In Release navigation pane, go to Configuration > Connections > Deploy Server and click
.
- Specify the required information:
Title
- [Required] Select a suitable title for the server configuration.Url
- [Required] URL to connect to Deploy Server (Example:http://localhost:4516
). If the port number is not specified in the URL, the plugin uses the default port number: 4517 forhttps
protocol and 4516 forhttp
protocol. If Deploy is running over ports 80 or 443, you must mention this explicitly in the URL.Username
- Username for Deploy server. Can be provided/overridden at task level.Password
- Password for Deploy server. Can be provided/overridden at task level.Proxy Host
- HTTP proxy host if needed.Proxy Port
- HTTP proxy Port if needed.Proxy User Name
- HTTP proxy User name to connect to Deploy.Proxy Password
- HTTP proxy Password to connect to Deploy.
Add a control task
Control tasks are actions that you can perform on middleware or middleware resources. For example: checking the connection to a host is a control task. When you trigger a control task, Deploy starts a task that executes the steps associated with the control task.
You can create a control task in Release by adding a task of type Deploy
-> Control Task
with the following properties:
Server
: [Required] Deploy Server to connect to.Configuration Item Id
: [Required] Full CI name (Example:Infrastructure/ProductionBox
). Autocomplete is not supported.Control task name
: Name of the control task (Example:checkConnection
). Autocomplete is not supported.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Continue If Step Fails
: If it is set toTrue
and a step fails, the task is retried. Default value isFalse
.Number Of Continue Retrials
: Number of times to retry the task when the step fails and 'Continue If Step Fails' is set toTrue
. Default value is 0.Polling Interval
: Polling interval in seconds to check the task status. Default value is 10.Polling Retry Count
: Number of times to retry checking for the task status. Default value is 0.Display Step Logs
: If it is set toTrue
, the step logs will be printed. Defaults value isTrue
.Parameters
: A dictionary with control task parameters.
Add a deploy task
The deploy task is an automated task that tells Deploy to deploy a certain application to an environment. Both the application (Package below) and environment (Environment below) must be configured in Deploy. The task gives live updates of the deployment process and completes automatically when the deployment succeeds.
You can create a deploy task in Release by adding a task of type Deploy
-> Deploy
with the following properties:
Server
: [Required] Deploy Server to connect to.Application
: ID of the application to be deployed. Autocomplete is supported.Version
: Version of the application to be deployed. Autocomplete is supported.Package
: [Required] Fully qualified ID of the package to deploy (Example:Applications/PetClinic/1.0
orPetClinic/1.0
). This field is auto-populated on completingApplication
andVersion
fields. Applications prefix is optional.Environment
: [Required] ID of the environment to deploy (Example:SITEnv
orEnvironments/SITEnv
). Autocomplete is supported. Environments prefix is optional.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Continue If Step Fails
: If it is set toTrue
and a step fails, the task is retried. Default value isFalse
.Number Of Continue Retrials
: Number of times to retry the task when the step fails and 'Continue If Step Fails' is set toTrue
. Default value is 0.Polling Interval
: Polling interval in seconds to check the task status. Default value is 10.Polling Retry Count
: Number of times to retry checking for the task status. Default value is 0.
Note: A default value of 0 means the task will constantly retry polling the Deploy task until completion. A retry count of > 0 means that it will poll that number of times and afterwards will continue on regardless of whether the Deploy task has completed.
Display Step Logs
: If it is set toTrue
, the step logs will be printed. Defaults value isTrue
.Orchestrators
: Comma separated list of orchestrators.Deployed Application Properties
: A dictionary with key value pairs to set deployed application properties.Deployed Properties
: A dictionary with key value pairs. The key is the ID of the deployable and the value in JSON format with the property name and values to be overridden.Rollback On Failure
: Enable this to perform rollback if the deployment fails.Cancel If Not Rollbacking
: Enable this to cancel the task if the deployment fails andRollback on Failure
is not selected.Fail On Pause
: Enable this to fail the task if it is paused.
Add an undeploy task
The undeploy task is an automated task that tells Deploy to undeploy an application from an environment. The name of the deployed application holds the complete information about the environment and the package to be undeployed. For example: Undeploy Environments/SITEnv/PetClinic
tells that package PetClinic must be undeployed from Environment SITEnv.
You can create an undeploy task in Release by adding a task of type Deploy
-> Undeploy
with the following properties:
Server
: [Required] Deploy Server to connect to.Deployed Application
: [Required] Name of the deployed application you want to undeploy (Example:Environments/SITEnv/PetClinic
). Autocomplete supported.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Continue If Step Fails
: If it is set toTrue
and a step fails, the task is retried. Default value isFalse
.Number Of Continue Retrials
: Number of times to retry the task when the step fails and 'Continue If Step Fails' is set toTrue
. Default value is 0.Polling Interval
: Polling interval in seconds to check the task status. Default value is 10.Polling Retry Count
: Number of times to retry checking for the task status. Default value is 0.Display Step Logs
: If it is set toTrue
, the step logs will be printed. Defaults value isTrue
.Orchestrators
: Comma separated list of orchestrators.Deployed Application Properties
: A dictionary with key value pairs to set deployed application properties.Rollback On Failure
: Enable this to perform rollback if the undeployment fails.Cancel If Not Rollbacking
: Enable this to cancel the task if the undeployment fails andRollback on Failure
is not selected.Fail On Pause
: Enable this to fail the task if it is paused.Fail If Application Does Not Exist
: Enable this to fail the task if the application does not exist.
For more information about using the deployment rollback option, refer to Perform deployment rollback.
Add an Add CI tag task
The Add CI tag task is an automated task that adds a new tag to an existing CI in Deploy.
You can create an Add CI tag task in Release by adding a task of type Deploy
-> Add CI Tag
with the following properties:
Server
: [Required] Deploy Server to connect to.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Deploy CI
: [Required] Full Configuration Item ID where tags have to be added (Example:Infrastructure/ProductionBox
).Deploy New Tag
: [Required] A new tag to add to the CI.
Add a Get CI tags task
The Get CI tags task is an automated task that retrieves all the tags of a CI from Deploy. The tags are displayed in an output property.
You can create a Get CI tags task in Release by adding a task of type Deploy
-> Get CI Tags
with the following properties:
Server
: [Required] Deploy Server to connect to.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Deploy CI
: [Required] Full Configuration Item ID for which tags are required (Example:Infrastructure/ProductionBox
).Deploy Tags
: The output property with the list of tags of the above mentioned Deploy CI.
Add a Set CI tags task
The Set CI tags task is an automated task that adds new tags to a CI in Deploy and replaces the old tags. The tags are displayed in an output property.
You can create an Set CI tags task in Release by adding a task of type Deploy
-> Set CI Tags
with the following properties:
Server
: [Required] Deploy Server to connect to.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.Deploy CI
: [Required] Full Configuration Item ID for which tags are required (Example:Infrastructure/ProductionBox
).Deploy New Tags
: [Required] The list of new tags to be added to the above mentioned Deploy CI.Deploy Tags
: The output property with the list of tags of the above mentioned Deploy CI.
Add a Create CI task
The Create CI task is an automated task that creates a CI and optionally adds it to an environment.
You can create a Create CI task in Release by adding a task of type Deploy
-> Create CI
with the following properties:
Server
: [Required] Deploy Server to connect to.Username
: Required if not provided in Connections.Password
: Required if not provided in Connections.CI ID
: [Required] Full Configuration Item ID (Example:Applications/PetClinic/1.0/CIName
).CI Type
: [Required] The type of the Configuration Item (Example:udm.Application
).Xml Descriptor
: XML with the fields to set on the CI.Add To Environment
: Switch this to add the CI to an environment.Environment ID
: Environment where to add the CI.