Deploy and run performance tests

This sample shows how to deploy an application and perform performance tests with JMeter.

<profile>
    <id>performance</id>
    <build>
        <plugins>
            <!-- DEPLOYIT-->
            <plugin>
                <groupId>com.xebialabs.xldeploy</groupId>
                <artifactId>xldeploy-maven-plugin</artifactId>
                <version>5.0.3-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>
                </configuration>
            </plugin>

            <!-- JMeter plugin  -->
            <plugin>
                <groupId>org.apache.jmeter</groupId>
                <artifactId>maven-jmeter-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <id>jmeter-tests</id>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>jmeter</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <reportDir>/var/lib/jenkins/workspace/Documentation/xl-deploy/5.0.x-maintenance/maven-deployit-plugin/target/jmeter-reports</reportDir>
                    <jmeterUserProperties>

                    </jmeterUserProperties>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.0.4</version>
                    </dependency>

                </dependencies>
            </plugin>
        </plugins>
    </build>
</profile>