Order of step execution

How can I manage the sequence of execution in XL Deploy? Especially when I’m using script files (type: file.File or file.Folder)?

Hello Jakub,

In general you can manipulate the order of CIs that extend generic types form the generic plugin (using createOrder, destroyOrder, modifyOrder, noopOrder) properties. You cannot modify the order of the types that belongs to the file-plugin, like file.Folder, file.File because there is no property exposed to change the order.

What you can do is encapsulate the file.Folder/file.File functionality in a custom type that is based on the Generic plugin where the use of above properties is possible (check Copied Artifact).

Here is an example for creating “custom.Folde” in which you can customize create order.

<type type="custom.DeployedFolder" extends="generic.CopiedArtifact" deployable-type="custom.Folder" container-type="overthere.HostContainer" description="Custom Folder type to change deployment create order">
    <generate-deployable type="custom.Folder" extends="generic.Folder"/>
    <property name="targetDirectory"/>
    <property name="createOrder" kind="integer" hidden="true" default="75"/>

If you add this to XLD_INSTALL_HOME/ext/synthetic.xml you will have a new type of deployable “custom.Folde” that acts similarly to a file.Folder but has an order property you can set before deployment. Changes to the CI types are loaded when the XL Deploy server starts so after doing those changes you will need to restart XLDeploy.

For more details about how to define a new ci type check this link. Also in case you need to know more about steps and how order works check this steps and step lists in xl-deploy.