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

20170121: Job [HRB_Mobile_Prod_apk_inhouse] configuration updated

Change performed by §N¨ήS
parent 7e521d86
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<description>打包 APK 放到 http server 上</description> <description>打包 APK 放到 http server 上</description>
<keepDependencies>false</keepDependencies> <keepDependencies>false</keepDependencies>
<properties> <properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.12"> <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
<gitLabConnection>ylhealth</gitLabConnection> <gitLabConnection>ylhealth</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
<hudson.model.ParametersDefinitionProperty> <hudson.model.ParametersDefinitionProperty>
...@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description> ...@@ -17,6 +17,12 @@ hotfix/1.14.1GA</description>
<defaultValue>master</defaultValue> <defaultValue>master</defaultValue>
<trim>false</trim> <trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition> </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
<hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
<name>CODE_PUSH</name>
<description>哪一個 Job 執行 code-push</description>
<defaultValue>hrb</defaultValue>
<trim>false</trim>
</hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
</parameterDefinitions> </parameterDefinitions>
</hudson.model.ParametersDefinitionProperty> </hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty> <jenkins.model.BuildDiscarderProperty>
...@@ -28,7 +34,7 @@ hotfix/1.14.1GA</description> ...@@ -28,7 +34,7 @@ hotfix/1.14.1GA</description>
</strategy> </strategy>
</jenkins.model.BuildDiscarderProperty> </jenkins.model.BuildDiscarderProperty>
</properties> </properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.10.0"> <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0">
<configVersion>2</configVersion> <configVersion>2</configVersion>
<userRemoteConfigs> <userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig> <hudson.plugins.git.UserRemoteConfig>
...@@ -54,37 +60,18 @@ hotfix/1.14.1GA</description> ...@@ -54,37 +60,18 @@ hotfix/1.14.1GA</description>
<concurrentBuild>false</concurrentBuild> <concurrentBuild>false</concurrentBuild>
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command>PATH=&quot;$HOME/.rvm/bin:/usr/local/bin:$PATH:/Users/jenkins/.fastlane/bin/&quot; <command>sh jenkins_android_inhouse_prod.sh ${CODE_PUSH}</command>
export VERSION=Prod_$(grep appVersion appConfig.json|cut -d&apos;&quot;&apos; -f4)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
npm run reset-android
sed -i &quot;&quot; &apos;/url/s/http.*\//https:\/\/hrb.foxconn.com\//g&apos; src/configs/index.js
sed -i &apos;&apos; &quot;/version/s/\&apos;.*\&apos;;/\&apos;${VERSION}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &quot;/modifiedTime/s/\&apos;.*\&apos;;/\&apos;${MODIFIED_DATE}\&apos;;/&quot; src/configs/index.js
sed -i &apos;&apos; &apos;s/piwikSiteId_ios =.*/piwikSiteId_ios = 10;/ ;s/piwikSiteId_android =.*/piwikSiteId_android = 11;/; s/installSourceId_android =.*/installSourceId_android = &apos;\&apos;&apos;HonHai&apos;\&apos;&apos;;/&apos; src/configs/index.js
npm run build-thread-android
bundle exec fastlane android gradleRelease</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>VERSION=Prod_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile
scp -o ProxyCommand=&apos;ssh -p 8080 jenkins@10.32.86.102 nc %h %p&apos; android/app/build/outputs/apk/release/app-release.apk jenkins@10.36.220.161:/opt/www/hrb/mobileapp/update/${NAME}_${VERSION}.apk</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
<publishers> <publishers>
<hudson.tasks.Mailer plugin="mailer@1.23"> <hudson.tasks.Mailer plugin="mailer@1.29">
<recipients>$RD_Group $QA_Group</recipients> <recipients>$RD_Group $QA_Group</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>false</sendToIndividuals> <sendToIndividuals>false</sendToIndividuals>
</hudson.tasks.Mailer> </hudson.tasks.Mailer>
</publishers> </publishers>
<buildWrappers> <buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.37"> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.38">
<deleteDirs>false</deleteDirs> <deleteDirs>false</deleteDirs>
<cleanupParameter></cleanupParameter> <cleanupParameter></cleanupParameter>
<externalDelete></externalDelete> <externalDelete></externalDelete>
...@@ -93,6 +80,6 @@ scp -o ProxyCommand=&apos;ssh -p 8080 jenkins@10.32.86.102 nc %h %p&apos; androi ...@@ -93,6 +80,6 @@ scp -o ProxyCommand=&apos;ssh -p 8080 jenkins@10.32.86.102 nc %h %p&apos; androi
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.6.2"> <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.6.2">
<colorMapName>xterm</colorMapName> <colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper> </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.9"/> <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.10"/>
</buildWrappers> </buildWrappers>
</project> </project>
\ 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