- Docs Home
- Getting started
- XL Release
- Overview
- Installation
- Get started with XL Release
- Manage your installation
- Model your releases
- Release your software
- Release overview
- Create and start releases
- Configure release properties
- Schedule releases
- Start a release from an archived release
- Start a release from a template
- Start a release from another release
- Create a release from a Git repository
- Add a phase to a release or template
- Add a task to a phase in a release or template
- Import a release template
- Trigger releases
- Work with running releases
- Work with plugins
- Using reports
- Customize XL Release
- API and scripting overview
- Create custom task types
- Create custom configuration types
- Create custom trigger types
- Extend the XL Release GUI
- Declare custom REST endpoints
- Create custom tiles
- Create custom task types
- Create custom configuration types
- Using scheduling in scripts to connect to long running jobs
- Implement a custom failure handler
- Listen to XL Release events
- Configuration settings
- Release manuals
- XL Deploy
- Overview
- Installation
- Get started with XL Deploy
- Manage your installation
- Logging
- Start XL Deploy
- Shut down XL Deploy
- Back up XL Deploy
- Upgrade XL Deploy
- The XL Deploy repository
- Configure the repository
- Configure XL Deploy to fetch artifacts from a Maven repository
- Manage security
- Manage system settings
- XL Deploy configuration files
- Configure failover for XL Deploy
- High availability with master-worker setup
- Add, start, and use workers
- Configure active/hot-standby mode
- Configure the task execution engine
- Troubleshoot the Jackrabbit JCR repository
- Configure XL Deploy client settings
- Enable XL Deploy maintenance mode
- Update the XL Deploy digital certificate
- The XL Deploy work directory
- Reclaim disk space on an XL Deploy server
- Hide internal XL Deploy server errors
- Automatically purge packages according to a user-defined policy
- Automatically purge the task archive according to a user-defined policy
- Specify file encoding on the XL Deploy server
- Automatically archive tasks according to a user-defined policy
- Best practices for maintaining XebiaLabs tools
- Connect to your infrastructure
- Set up applications and environments
- Prepare your application for XL Deploy
- Create a deployment package
- Define application dependencies
- Configure an environment
- Using placeholders and dictionaries
- Working with deployment packages
- Preparing your application for XL Deploy
- Understanding deployables and deployeds
- XL Deploy manifest format
- Deprecated XL Deploy manifest format
- Using the XL Deploy Manifest Editor
- Understanding archives and folders in XL Deploy
- Add an externally stored artifact to a package
- Extend the external artifact storage feature
- Add a package to XL Deploy
- Export a deployment package
- XL Deploy for developers
- Tips and tricks for deployment packages
- Deploy an application
- Deployment overview
- Understanding the XL Deploy planning phase
- Steps and step lists in XL Deploy
- Understanding tasks in XL Deploy
- Deploy an application
- Use tags to configure deployments
- Preview the deployment plan
- Use orchestration
- Working with deployments
- Stopping, aborting, or canceling a deployment
- Schedule a deployment
- Update a deployed application
- Staging artifacts in XL Deploy
- Monitor and reassign deployment tasks
- Make previously deployed property values available in a PowerShell script
- Undeploy an application or deprovision an environment
- Perform canary deployments
- Perform dark launch deployments
- Perform hot deployments
- Deploying an externally stored artifact using the XL Deploy CLI
- Schedule or reschedule a task
- Using the deployment pipeline view
- Deploy to remote datacenters
- Get started with provisioning
- Introduction to the release dashboard
- Work with the CLI
- Work with plugins
- Create an XL Deploy plugin
- Base plugins and the deployed object
- Implement custom XL Deploy plugpoints
- Add a checkpoint to a custom plugin
- Step options for the Generic, PowerShell, and Python plugins
- Sample Java-based XL Deploy plugin
- XL Deploy plugin tutorial
- Standard plugins
- Middleware plugins
- Apache Tomcat
- BizTalk
- F5 BIG-IP
- GlassFish
- IBM WebSphere Application Server
- IBM WebSphere Process Server
- IBM WebSphere Liberty Profile Server
- IBM WebSphere MQ
- JBoss Application Server 5 and 6
- JBoss Application Server 7 and up
- Microsoft Internet Information Services
- Microsoft Windows
- NetScaler
- Oracle Service Bus
- Oracle Service-Oriented Architecture
- Oracle WebLogic Application Server
- Provisioning plugins
- Container platform plugins
- Tools
- Community plugins
- Using control tasks
- Using the explorer
- Using XL Deploy reports
- Customize XL Deploy
- Release manuals
- DevOps as Code
- Get started with DevOps as Code
- Install the XL CLI
- XL CLI command reference
- Work with the YAML format
- YAML snippets reference
- Manage values in DevOps as Code
- Track progress using XL CLI output
- Manage risk profiles
- Manage XL Deploy permissions in YAML
- Manage XL Release permissions in YAML
- Manage XL Release folder permissions in YAML
- Tutorial: Managing an XL Release template as code
- Blueprints
- API and CI references
- Plugins
- XL Release plugins
- XL Deploy plugins
- Standard plugins
- Middleware plugins
- Apache Tomcat
- BizTalk
- F5 BIG-IP
- GlassFish
- IBM WebSphere Application Server
- IBM WebSphere Process Server
- IBM WebSphere Liberty Profile Server
- IBM WebSphere MQ
- JBoss Application Server 5 and 6
- JBoss Application Server 7 and up
- Microsoft Internet Information Services
- Microsoft Windows
- NetScaler
- Oracle Service Bus
- Oracle Service-Oriented Architecture
- Oracle WebLogic Application Server
- Provisioning plugins
- Container platform plugins
- Tools
- Community plugins
- Videos
- Community
- Fix Trackers
- Archive
Sample use of the XL Deploy Generic plugin
This is an example of using the Generic Model plugin to implement support for a simple middleware platform. Deployment to this platform is done by simply copying a WAR archive to the right directory on the container. Resources are created by copying configuration files into the container’s configuration directory. The Tomcat application server works in a very similar manner.
By defining a container and several other CIs based on CIs from the Generic Model plugin, it is possible to add support for deploying to this platform to XL Deploy.
Defining the container
To use any of the CIs in the Generic Model plugin, they need to be targeted to a generic.Container
. This snippet shows how to define a generic container as a synthetic type:
<type type="tc.Server" extends="generic.Container">
<property name="home" default="/tmp/tomcat"/>
</type>
<type type="tc.UnmanagedServer" extends="tc.Server">
<property name="startScript" default="tc/start.sh" hidden="true"/>
<property name="stopScript" default="tc/stop.sh" hidden="true"/>
<property name="restartScript" default="tc/restart.sh" hidden="true"/>
</type>
Note that the tc.UnmanagedServer
CI defines a start, stop and restart script. The XL Deploy Server reads these scripts from the classpath. When targeting a deployment to the tc.UnmanagedServer
, XL Deploy will include steps executing the start, stop and restart scripts in appropriate places in the deployment plan.
Defining a configuration file
The following snippet defines a CI based on the generic.CopiedArtifact
. The tc.DeployedFile
CI can be targeted to the tc.Server
. The target directory is specified as a hidden property. Note the placeholder syntax used here.
<type type="tc.DeployedFile" extends="generic.CopiedArtifact" deployable-type="tc.File"
container-type="tc.Server">
<generate-deployable type="tc.File" extends="generic.File"/>
<property name="targetDirectory" default="${deployed.container.home}/conf" hidden="true"/>
</type>
Using the above snippet, it is possible to create a package with a tc.File
deployable and deploy it to an environment containing a tc.UnmanagedServer
. This will result in a tc.DeployedFile
deployed.
Defining a WAR
To deploy a WAR file to the tc.Server
, one possibility is to define a tc.DeployedWar
CI that extends the generic.ExecutedScript
. The tc.DeployedWar
CI is generated when deploying a jee.War
to the tc.Server
CI. This is what the XML looks like:
<type type="tc.DeployedWar" extends="generic.ExecutedScript" deployable-type="jee.War"
container-type="tc.Server">
<generate-deployable type="tc.War" extends="jee.War"/>
<property name="createScript" default="tc/install-war" hidden="true"/>
<property name="modifyScript" default="tc/reinstall-war" hidden="true" required="false"/>
<property name="destroyScript" default="tc/uninstall-war" hidden="true"/>
</type>
When performing an initial deployment, the create script, tc/install-war
is executed on the target container. Inside the script, a reference to the file
property is replaced by the actual archive. Note that the script files do not have an extension. Depending on the target platform, the extension sh
(Unix) or bat
(Windows) is used.
The WAR file is referenced from the script as follows:
echo Installing WAR ${deployed.deployable.file} in ${deployed.container.home}
Defining a datasource
Configuration files can be deployed by creating a CI based on the generic.ProcessedTemplate
. By including a generic.Resource
in the package that is a FreeMarker template, a configuration file can be generated during the deployment and copied to the container. This snippet defines such a CI, tc.DeployedDataSource
:
<type type="tc.DeployedDataSource" extends="generic.ProcessedTemplate" deployable-type="tc.DataSource"
container-type="tc.Server">
<generate-deployable type="tc.DataSource" extends="generic.Resource"/>
<property name="jdbcUrl"/>
<property name="port" kind="integer"/>
<property name="targetDirectory" default="${deployed.container.home}/webapps" hidden="true"/>
<property name="targetFile" default="${deployed.name}-ds.xml" hidden="true"/>
<property name="template" default="tc/datasource.ftl" hidden="true"/>
</type>
The template
property specifies the FreeMarker template file that the XL Deploy Server reads from the classpath. The targetDirectory
controls where the template is copied to. Inside the template, properties like jdbcUrl
on the datasource can be used to produce a proper configuration file.