Deploy configuration files
This sample shows how to package a folder of configuration files and, when deploying it, give the targetPath where it will be copied and the placeholder values. Note: At import time, the XL Deploy server scans the artifacts to fetch all placeholders, defined using ... . The deployed block changes the configuration folder to the Infrastructure/host-weblogic-vm host container by providing the following values:
Please not that this sample uses 'legacy format' of deployables.
<plugins> .... <plugin> <groupId>com.xebialabs.deployit</groupId> <artifactId>maven-deployit-plugin</artifactId> <version>4.0.1</version> <executions> <execution> <id>deployit-plugin-test</id> <phase>pre-integration-test</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> <configuration> <environmentId>Environments/MyProjectEnvironment</environmentId> <deployables> <file.Folder name="configuration" location="config"/> </deployables> <deployeds> <deployed> <id>Infrastructure/host-weblogic-vm/configuration</id> <type>file.DeployedFolder</type> <targetPath>/tmp/conf</targetPath> <placeholders> <map> <title>Deployment From Maven</title> </map> </placeholders> </deployed> </deployeds> </configuration> </plugin> ... </plugins>