The previous section, explained about configuring the Lifecycle for an application with various stages. This section focuses on how to add a new "Stage" to your system. Generally stages that are associated in an application creation - release lifecycle are "Development", "Testing", "Staging" and "Production". However depending on the organization or business type, the stages can differ. Similarly the resource allocations, permissions and other configurations may change as well.
You can define the stage details of your preference, inside the
<DeploymentStage name=""> element in
Following sample code explains how to add the Testing stage as a deployment stage:
The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.
XML Elements of the Sample Code
|Element Name||Description||Type||Default Value||Fixed Values||Mandatory/Optional|
Specifies new life cycle stage that is defined in life cycle config file (configurations.xml).
Defines application types and its repository configuration. Deployer can be either S2 or Carbon4. Carbon4-based deployer only contains
Specify allowed application type, which can be deployed.
Class path to application type deployment's implementation class.
Staging deployment endpoint URL.
Credentials of repository provider.
Property related to cartridge needed to subscribe.
Enable or disable Deploy button.
Enable or Disable auto-deployment.
Polling period (in minutes) to the repository, to check for the new commits. Default this has been configured only for the "Development" Stage, which is the most common case.
Define whether to deploy "Latest" or "Marked" artifact.
Transition event which is specified in App Factory life cycle configuration file.
Tagged/ Promoted artifact will be deployed to the promoted stage.
Define target stage when transition state is invoked.
Specify end point service URL to call when deploy button is clicked.
Deployment server URL to deploy artifact.
|Registry mount point for other service (eg: appserver) for property management in appfactory.||String|
Base access URL for application launch.
Configure the Lifecycles such that the applications in that lifecycle can/cannot be build.
Base service URL for storage.
|RSS name of given deployment stage.||String|