Deployment Configuration Files

This example shows how to package a folder of configuration files and when deploying it give the targetPath where it will be copied and the placeholders values. Note: at the import time, Deployit Server scans the artifacts to fetch all the placeholders, defined using .... The deployed block tells to modify the deployment configuration of the configuration folder to Infrastructure/host-weblogic-vm host container by giving a value to:

  • 'targetPath' equals '/tmp/conf'
  • 'title' placeholder equals to 'Deployment From Maven'
    <plugins>
        ....
        <plugin>
            <groupId>com.xebialabs.deployit</groupId>
            <artifactId>maven-deployit-plugin</artifactId>
            <version>3.9.3</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>