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:

  • 'targetPath' equals '/tmp/conf'
  • 'title' placeholder equals 'Deployment From Maven'

    Please not that this sample uses 'legacy format' of deployables.

    <plugins>
        ....
        <plugin>
            <groupId>com.xebialabs.xldeploy</groupId>
            <artifactId>xldeploy-maven-plugin</artifactId>
            <version>5.2.0-SNAPSHOT</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>