Skip to content

Commit

Permalink
[JENKINS-36871] Add a load testing client
Browse files Browse the repository at this point in the history
- This needs its own LICENSE and NOTICE files as it includes things like JUnit
  • Loading branch information
stephenc committed Aug 5, 2016
1 parent c8be845 commit 19093e3
Show file tree
Hide file tree
Showing 8 changed files with 1,333 additions and 183 deletions.
41 changes: 41 additions & 0 deletions pom.xml
Expand Up @@ -206,6 +206,12 @@ THE SOFTWARE.
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${basedir}</directory>
<includes>
<include>NOTICE</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
Expand Down Expand Up @@ -238,6 +244,22 @@ THE SOFTWARE.
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>executable-tests</id>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>org.jenkinsci.remoting.engine.HandlerLoopbackLoadStress</mainClass>
</manifest>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jarsigner-plugin</artifactId>
Expand Down Expand Up @@ -317,6 +339,25 @@ THE SOFTWARE.
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptors>
<descriptor>src/assembly/agent-load-test.xml</descriptor>
</descriptors>
<attach>false</attach>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down
46 changes: 46 additions & 0 deletions src/assembly/agent-load-test.xml
@@ -0,0 +1,46 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<!-- TODO: a jarjar format would be better -->
<id>agent-load-test</id>
<formats>
<format>tar.gz</format>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/repo</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<useProjectAttachments>true</useProjectAttachments>
<scope>test</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/assembly/agent-load-test</directory>
<outputDirectory>bin</outputDirectory>
<includes>
<include>agent-load-test</include>
</includes>
<fileMode>0755</fileMode>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/assembly/agent-load-test</directory>
<outputDirectory>bin</outputDirectory>
<includes>
<include>agent-load-test.bat</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/assembly/agent-load-test</directory>
<outputDirectory>./</outputDirectory>
<excludes>
<exclude>agent-load-test*</exclude>
</excludes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 19093e3

Please sign in to comment.