Post

1 follower Follow
1
Avatar

Import and deploy deployment packages from CLI

This CLI extension that imports a given deployment package and starts an upgrade of the corresponding application to a target environment. This is similar to a an invocation of the deployit-maven-plugin's import goal followed by an invocation of deploy.

Requirements

Requires deployments.py in CLI_HOME/ext

Installation

Copy the script into CLI_HOME/ext

Usage

Call deployPackage(packagePath, targetEnvironment) to import the package and trigger an upgrade to the given environment. Requires an existing deployment of the application (usually a different version) to the target environment. Example:

deployPackage("path/to/my/package", "Dev")

Can be combined with the zip-importer or jee-archive-importer (on the server side) to support deployments of plain ZIP files or even just EARs or WARs.

Happy deploying!

Andrew
XebiaLabs

XebiaLabs Support

Please sign in to leave a comment.