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

20140144: Job [BatchForHealthConn_Prod] configuration updated

Change performed by ·¨¼y°ó
parent 2b9d2c76
<?xml version='1.1' encoding='UTF-8'?> <?xml version='1.1' encoding='UTF-8'?>
<maven2-moduleset plugin="maven-plugin@3.2"> <maven2-moduleset plugin="maven-plugin@3.2">
<actions/> <actions/>
<description>整合打包測試&#xd; <description>打包新的康聯轉檔程式&#xd;
10.32.86.132:443</description> 打包完會放到 &#xd;
/home/hccuser/hccProd/batch/batch.jar&#xd;
/home/hccuser/hccProd/batch/dependency/</description>
<keepDependencies>false</keepDependencies> <keepDependencies>false</keepDependencies>
<properties> <properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.11"> <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.11">
<gitLabConnection>ylhealth</gitLabConnection> <gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.TextParameterDefinition>
<name>EXEC_DATE</name>
<description>要轉檔資料的時間
yyyyMMdd</description>
<defaultValue>20180329</defaultValue>
<trim>false</trim>
</hudson.model.TextParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty> <jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator"> <strategy class="hudson.tasks.LogRotator">
<daysToKeep>1</daysToKeep> <daysToKeep>-1</daysToKeep>
<numToKeep>3</numToKeep> <numToKeep>3</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep> <artifactNumToKeep>-1</artifactNumToKeep>
...@@ -38,7 +29,7 @@ yyyyMMdd</description> ...@@ -38,7 +29,7 @@ yyyyMMdd</description>
</userRemoteConfigs> </userRemoteConfigs>
<branches> <branches>
<hudson.plugins.git.BranchSpec> <hudson.plugins.git.BranchSpec>
<name>*/develop</name> <name>*/master</name>
</hudson.plugins.git.BranchSpec> </hudson.plugins.git.BranchSpec>
</branches> </branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
...@@ -81,45 +72,11 @@ yyyyMMdd</description> ...@@ -81,45 +72,11 @@ yyyyMMdd</description>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.9"/> <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.9"/>
</buildWrappers> </buildWrappers>
<prebuilders/> <prebuilders/>
<postbuilders> <postbuilders/>
<hudson.tasks.Shell>
<command>cat &gt; app_PROD.properties &lt;&lt; EOF
dataSource.url=jdbc:jtds:sqlserver://10.32.86.132:443/CRM_UAT
dataSource.userName=batch
dataSource.password=3edc4rfv
dataSource.driverClassName=net.sourceforge.jtds.jdbc.Driver
dataSource.dialect=org.hibernate.dialect.SQLServer2008Dialect
hrb.dataSource.url=jdbc:jtds:sqlserver://10.32.86.132:443/HRB_DEV
hrb.dataSource.userName=batch
hrb.dataSource.password=3edc4rfv
hrb.dataSource.driverClassName=net.sourceforge.jtds.jdbc.Driver
hrb.dataSource.dialect=org.hibernate.dialect.SQLServer2008Dialect
his.dataSource.url=jdbc:oracle:thin:@10.57.112.21:1521/HISDB
his.dataSource.userName=CRM_SYNC
his.dataSource.password=crm@1234
his.dataSource.driverClassName=oracle.jdbc.driver.OracleDriver
his.dataSource.dialect=org.hibernate.dialect.Oracle10gDialect
his.dataSource.default_schema=HCC
smtp.userName=ylbatch
smtp.password=foxconn88
email.notify=scott.yang@ylhealth.org,alison.kuo@ylhealth.org
email.admin=scott.yang@ylhealth.org,alison.kuo@ylhealth.org
EOF
/home/test/run_etl.sh
java -cp .:target/batch-0.0.1-SNAPSHOT-rnull.jar org.ylhealth.crm.batch.main.CRMBatch ${EXEC_DATE}
</command>
</hudson.tasks.Shell>
</postbuilders>
<runPostStepsIfResult> <runPostStepsIfResult>
<name>FAILURE</name> <name>SUCCESS</name>
<ordinal>2</ordinal> <ordinal>0</ordinal>
<color>RED</color> <color>BLUE</color>
<completeBuild>true</completeBuild> <completeBuild>true</completeBuild>
</runPostStepsIfResult> </runPostStepsIfResult>
</maven2-moduleset> </maven2-moduleset>
\ No newline at end of file
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