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

20170121: Job [HRB_Mobile_SIT_JV_apk] configuration updated

Change performed by §N¨ήS
parent 872473c1
...@@ -35,7 +35,7 @@ hotfix/1.43.1</description> ...@@ -35,7 +35,7 @@ hotfix/1.43.1</description>
</strategy> </strategy>
</jenkins.model.BuildDiscarderProperty> </jenkins.model.BuildDiscarderProperty>
</properties> </properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3"> <scm class="hudson.plugins.git.GitSCM" plugin="git@3.10.0">
<configVersion>2</configVersion> <configVersion>2</configVersion>
<userRemoteConfigs> <userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig> <hudson.plugins.git.UserRemoteConfig>
...@@ -64,11 +64,18 @@ hotfix/1.43.1</description> ...@@ -64,11 +64,18 @@ hotfix/1.43.1</description>
<command>export LC_ALL=en_US.UTF-8 <command>export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
PATH=&quot;$PATH:/usr/local/bin:/Users/jenkins/.fastlane/bin/&quot; PATH=&quot;$PATH:$HOME/.rvm/bin:/usr/local/bin:/Users/jenkins/.fastlane/bin/&quot;
VERSION=SIT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD) VERSION=SIT_DHP_$(date +%Y%m%d)_$(git rev-parse --short HEAD)
MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --) MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
npm install --update-binary # 加速打包,正式時還是要包
GYM_INCLUDE_SYMBOLS=false
GYM_INCLUDE_BITCODE=false
gem install bundler
bundler install
yarn install
sed -i &apos;&apos; &quot;/url/s/http.*\//http:\/\/${API_SERVER}\//g&quot; src/configs/index.js sed -i &apos;&apos; &quot;/url/s/http.*\//http:\/\/${API_SERVER}\//g&quot; 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;/version/s/\&apos;.*\&apos;;/\&apos;${VERSION}\&apos;;/&quot; src/configs/index.js
...@@ -89,7 +96,7 @@ MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --) ...@@ -89,7 +96,7 @@ MODIFIED_DATE=$(git log -1 --format=&quot;%ci&quot; --)
NAME=HRB_Mobile NAME=HRB_Mobile
mv android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk ~/Sites/${NAME}_${VERSION}.apk mv android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk ~/Sites/${NAME}_${VERSION}.apk
scp ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/jv/</command> scp -i ~/jenkins/jenkins ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/jv/</command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
<publishers> <publishers>
......
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