This document describes the functionality provided by the xlr-xlrelease-plugin.
See the XL Release Documentation for background information on XL Release and release concepts.
The xlr-xlrelease-plugin is an XL Release plugin that allows you to:
- Programmatically create a template and assign tags to it
- Create and start another release from an existing release. So you can create a subrelease from a parent release
- Programmatically delete phases in the current release
For XL Release version 4.8.x you'll need at least version 1.7.x of the plugin.
- XL Release 6.0+
- Copy the latest JAR file from the releases page into the
XL_RELEASE_SERVER/plugins
directory. - Restart the XL Release server.
-
Create and Start SubRelease
templateName
: Name of the template from which to create the subrelease (string
)releaseTitle
: Name of the subrelease (string
)releaseDescription
: Description of the subrelease (string
)variables
: Comma-separated key-value pairs for the values of variables required by the subrelease, e.g. var1=value1,var2=value2 (string
)asynch
: If [false], the task will wait for the subrelease to finishgateTaskTitle
: Title of the gate task in this release that should wait for the subrelease to complete. Skipped if not specified (blank).
-
Create Template
templateName
: Name of the template to create (string
)tags
: Comma-separated list of tags to associate with this template e.g. tag1,tag2 (string
)
-
Delete Phases
phases (deprecated)
: Comma-separated list of names of phases in the current release to delete e.g. phase1,phase2 (string
)phases
:set_of_string
, defining all phases to be deleted.- This task requires XL Release 4.5.0 or higher
-
Get Task ID
taskTitle
: Title of the task to get the id for (string
)- This task requires XL Release 4.5.0 or higher
-
Get Tags
tags
: A List of the current tags for the release
-
Add Tag
newTag
: New tag to add to the list of tags for the releasetags
: A List of the current tags for the release
-
Set Tags
newTags
: A List of tags to replace the tag list withtags
: A list of the current tags for the release
-
Add And Remove Tags
tagsToRemove
: A list of tags to remove from the releasetagsToAdd
: A list of tags to add to the release
-
Add XL Deploy task
releaseName
: Name of the release where XL deploy task needs to be addedphaseName
: Name of the phase, task will be added at the bottom of the phasetaskTitle
: Title of the task to be createdxldServer
: XL deploy server to be useddeploymentPackage
: Version of the application to be deployed.deploymentEnvironment
: Environment to deploy to.rollbackOnFailure
: Rollback on failure controls whether or not the task is rolled back.
-
Wait for release status
- The task waits for a target release to reach a particular status. It can be used for example to implement an on-failure hook for a release: you can spawn another release which starts monitoring your main release, and sends a notification message when it's finished or fails. The output property
Release Status
can be used in preconditions of the monitoring release to control which action to take. Note that this task is polling the status every 5 seconds, so it can miss if a target release went through a status too quickly. Release ID
: ID of the target release to wait for. Currently on releases are supported, you cannot wait for a phase or a task.In Progress
,Completed
etc: checked if this task should complete when the target release is in one of the corresponding statuses.Release Status
: The status of the release when this task finishes. It will be one of the checked statuses.
- The task waits for a target release to reach a particular status. It can be used for example to implement an on-failure hook for a release: you can spawn another release which starts monitoring your main release, and sends a notification message when it's finished or fails. The output property