8000 #15 · soujava/soujava-test-kit@5e12b6a · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e12b6a

Browse files
1 parent 929ef6b commit 5e12b6a

File tree

1 file changed

+45
-19
lines changed

1 file changed

+45
-19
lines changed

jenkins/config.xml

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?xml version='1.0' encoding='UTF-8'?>
2-
<maven2-moduleset plugin="maven-plugin@2.7.1">
2+
<maven2-moduleset plugin="maven-plugin@2.14">
33
<actions/>
44
<description>SouJava_Scala_Gatling_Generic_Test</description>
5-
<logRotator class="hudson.tasks.LogRotator">
6-
<daysToKeep>5</daysToKeep>
7-
<numToKeep>-1</numToKeep>
8-
<artifactDaysToKeep>-1</artifactDaysToKeep>
9-
<artifactNumToKeep>-1</artifactNumToKeep>
10-
</logRotator>
115
<keepDependencies>false</keepDependencies>
126
<properties>
7+
<jenkins.model.BuildDiscarderProperty>
8+
<strategy class="hudson.tasks.LogRotator">
9+
<daysToKeep>5</daysToKeep>
10+
<numToKeep>-1</numToKeep>
11+
<artifactDaysToKeep>-1</artifactDaysToKeep>
12+
<artifactNumToKeep>-1</artifactNumToKeep>
13+
</strategy>
14+
</jenkins.model.BuildDiscarderProperty>
1315
<hudson.model.ParametersDefinitionProperty>
1416
<parameterDefinitions>
1517
<hudson.model.ChoiceParameterDefinition>
@@ -29,6 +31,9 @@
2931
<description></description>
3032
<choices class="java.util.Arrays$ArrayList">
3133
<a class="string-array">
34+
<string>1</string>
35+
<string>10</string>
36+
<string>100</string>
3237
<string>1000</string>
3338
<string>5000</string>
3439
<string>10000</string>
@@ -82,7 +87,7 @@
8287
</parameterDefinitions>
8388
</hudson.model.ParametersDefinitionProperty>
8489
</properties>
85-
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.2.7">
90+
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.0.1">
8691
<configVersion>2</configVersion>
8792
<userRemoteConfigs>
8893
<hudson.plugins.git.UserRemoteConfig>
@@ -102,25 +107,27 @@
102107
<disabled>false</disabled>
103108
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
104109
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
110+
<jdk>JDK8u121</jdk>
105111
<triggers>
106112
<hudson.triggers.TimerTrigger>
107113
<spec>H 4 * * 1-7</spec>
108114
</hudson.triggers.TimerTrigger>
109115
</triggers>
110116
<concurrentBuild>false</concurrentBuild>
111117
<rootModule>
112-
<groupId>io.gatling</groupId>
118+
<groupId>br.org.soujava</groupId>
113119
<artifactId>scala-gatling-bootstrap-mvn</artifactId>
114120
</rootModule>
115-
<goals>gatling:execute -Dgatling.simulationClass=soujava.BenchmarkGeneric -DNUM_THREADS=${NUM_THREADS} -DRAMP_TIME=${RAMP_TIME} -DDURATION=${DURATION} -DTARGET=${TARGET} -DENDPOINT=${ENDPOINT} -DENDPOINT_NAME=${ENDPOINT_NAME}</goals>
121+
<goals>clean install</goals>
116122
<aggregatorStyleBuild>true</aggregatorStyleBuild>
117123
<incrementalBuild>false</incrementalBuild>
118-
<ignoreUpstremChanges>false</ignoreUpstremChanges>
124+
<ignoreUpstremChanges>true</ignoreUpstremChanges>
125+
<ignoreUnsuccessfulUpstreams>false</ignoreUnsuccessfulUpstreams>
119126
<archivingDisabled>false</archivingDisabled>
120127
<siteArchivingDisabled>false</siteArchivingDisabled>
121128
<fingerprintingDisabled>false</fingerprintingDisabled>
122-
<resolveDependencies>false</resolveDependencies>
123-
<processPlugins>false</processPlugins>
129+
<resolveDependencies>true</resolveDependencies>
130+
<processPlugins>true</processPlugins>
124131
<mavenValidationLevel>-1</mavenValidationLevel>
125132
<runHeadless>false</runHeadless>
126133
<disableTriggerDownstreamProjects>false</disableTriggerDownstreamProjects>
@@ -129,17 +136,36 @@
129136
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
130137
<reporters/>
131138
<publishers>
132-
<io.gatling.jenkins.GatlingPublisher plugin="gatling@1.0.4-SNAPSHOT">
133-
<enabled>true</enabled>
139+
<htmlpublisher.HtmlPublisher plugin="htmlpublisher@1.12">
140+
<reportTargets>
141+
<htmlpublisher.HtmlPublisherTarget>
142+
<reportName>HTML Report</reportName>
143+
<reportDir>gatling/target/result</reportDir>
144+
<reportFiles>index.html</reportFiles>
145+
<alwaysLinkToLastBuild>true</alwaysLinkToLastBuild>
146+
<keepAll>true</keepAll>
147+
<allowMissing>false</allowMissing>
148+
</htmlpublisher.HtmlPublisherTarget>
149+
</reportTargets>
150+
</htmlpublisher.HtmlPublisher>
151+
<io.gatling.jenkins.GatlingPublisher plugin="gatling@1.2.1">
152+
<enabled>false</enabled>
134153
</io.gatling.jenkins.GatlingPublisher>
135154
</publishers>
136155
<buildWrappers/>
137156
<prebuilders/>
138-
<postbuilders/>
157+
<postbuilders>
158+
<hudson.tasks.Shell>
159+
<command>cd gatling;
160+
mvn clean;
161+
mvn gatling:execute -Dgatling.simulationClass=soujava.BenchmarkGeneric -DNUM_THREADS=${NUM_THREADS} -DRAMP_TIME=${RAMP_TIME} -DDURATION=&quot;${DURATION}&quot; -DTARGET=&quot;${TARGET}&quot; -DENDPOINT=&quot;${ENDPOINT}&quot; -DENDPOINT_NAME=${ENDPOINT_NAME};
162+
cp -R target/gatling/*/ target/result;</command>
163+
</hudson.tasks.Shell>
164+
</postbuilders>
139165
<runPostStepsIfResult>
140-
<name>FAILURE</name>
141-
<ordinal>2</ordinal>
142-
<color>RED</color>
166+
<name>UNSTABLE</name>
167+
<ordinal>1</ordinal>
168+
<color>YELLOW</color>
143169
<completeBuild>true</completeBuild>
144170
</runPostStepsIfResult>
145171
</maven2-moduleset>

0 commit comments

Comments
 (0)
0