Commit 8b2b780a authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20170121: Job [KM_SIT_137_Trigger] configuration updated

Change performed by 冷佳娟
parent f405163b
......@@ -7,6 +7,20 @@
<gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.ChoiceParameterDefinition>
<name>process</name>
<description/>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>stop</string>
<string>start</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
......@@ -28,7 +42,6 @@
<groupId>com.h2uclub</groupId>
<artifactId>h2u-km-api</artifactId>
</rootModule>
<goals>clean package -Poptimize -Dmaven.test.skip=true -DskipTests=true</goals>
<aggregatorStyleBuild>true</aggregatorStyleBuild>
<incrementalBuild>false</incrementalBuild>
<ignoreUpstremChanges>true</ignoreUpstremChanges>
......@@ -47,7 +60,15 @@
<reporters/>
<publishers/>
<buildWrappers/>
<prebuilders/>
<prebuilders>
<hudson.tasks.Shell>
<command>if [ "${process}" == "start" ]; then
systemctl start km
else
systemctl stop km
fi</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders/>
<runPostStepsIfResult>
<name>FAILURE</name>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment