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

20180083: Job [Hi365_HRA_SIT_Deploy] configuration updated

Change performed by §õº~?
parent f39ea9e6
......@@ -58,7 +58,7 @@
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://cm.ylhealth.org/gitlab/YongYue/hi365-api.git</url>
<url>https://cm.ylhealth.org/gitlab/YongYue/hi365-hra.git</url>
<credentialsId>3485e854-8389-40e8-8c86-b94e94e91904</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
......@@ -82,7 +82,7 @@
<groupId>com.h2u.hi365.resource</groupId>
<artifactId>Resource-Server</artifactId>
</rootModule>
<goals>clean package -Dmaven.test.skip=true -DskipTests=true</goals>
<goals>clean package -Dmaven.test.skip=true -P !jenkins,prod</goals>
<defaultGoals>spring-boot:run</defaultGoals>
<aggregatorStyleBuild>true</aggregatorStyleBuild>
<incrementalBuild>false</incrementalBuild>
......@@ -113,7 +113,7 @@
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
<configs>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>NotifyMessage=Deploy Hi365 API done on SIT.</properties>
<properties>NotifyMessage=Deploy HRA done on SIT.</properties>
<textParamValueOnNewLine>false</textParamValueOnNewLine>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
</configs>
......@@ -137,16 +137,14 @@
<hudson.tasks.Shell>
<command>VAR=$(git rev-parse --short HEAD)_$(date +&quot;%Y%m%d_%H%M&quot;)
version=$(echo $GIT_BRANCH | cut -d&apos;/&apos; -f 3)
# sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/index.html
# sed -i &quot;s/&lt;title.*/&lt;title ng-bind=&apos;page_title&apos;&gt;CRM v${version}_${VAR}&lt;\/title\/&gt;/&quot; src/main/resources/static/indexMinify.html</command>
sed -i &quot;s/&lt;base.*/&lt;base href=\&quot;\/\&quot; version=\&quot;${version}_${VAR}\&quot;\/&gt;/&quot; WebContent/WEB-INF/jsp/home/home.jsp</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders>
<hudson.tasks.Shell>
<command>sudo systemctl stop Hi365Resource
sudo rm -f /opt/Hi365ResourceServer/lib/*.jar
sudo /usr/bin/unzip -j -o target/Resource-Server-pack.zip &quot;Resource-Server/lib/*&quot; -d /opt/Hi365ResourceServer/lib
sudo systemctl start Hi365Resource</command>
<command>sudo systemctl stop hra.service
sudo cp target/ylhealth-hra.war /opt/hra/webapps/
sudo systemctl start hra.service</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult>
......
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