From 19140aacbb0412d375f74e933dc87b12ec3932c3 Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Wed, 12 Jun 2019 09:56:11 +0800 Subject: [PATCH] 20170121: Job [HRB_Mobile_Other_apk] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by §N¨ήS --- jobs/HRB_Mobile_Other_apk/config.xml | 45 ++++++++++++++-------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/jobs/HRB_Mobile_Other_apk/config.xml b/jobs/HRB_Mobile_Other_apk/config.xml index 08159d3a..e4bfea0a 100644 --- a/jobs/HRB_Mobile_Other_apk/config.xml +++ b/jobs/HRB_Mobile_Other_apk/config.xml @@ -11,7 +11,7 @@ - HRB_Mobile_Other_Branch + GIT_BRANCH feature branch使用的版本,如: feature/HA-818 其他Branch請自行設定 @@ -39,6 +39,12 @@ commitId http false + + CODE_PUSH + 哪一個 Job 執行 code-push + other + false + @@ -60,7 +66,7 @@ commitId - */${HRB_Mobile_Other_Branch} + */${GIT_BRANCH} false @@ -76,27 +82,22 @@ commitId false - sh jenkins_android.sh SIT_${DownloadName} - -sed -i '' "/url/s/http.*\//${HTT_PROTOCOL}:\/\/${API_SERVER}\//g" src/configs/index.js -sed -i '' "/version/s/\'.*\';/\'${VERSION}\';/" src/configs/index.js -sed -i '' "/modifiedTime/s/\'.*\';/\'${MODIFIED_DATE}\';/" src/configs/index.js -sed -i '' "/allergyUrl/s/\__DEV__.*\';/\'${HTT_PROTOCOL}:\/\/${API_SERVER}\/\';/" src/configs/index.js -sed -i '' 's/appVersion.*/appVersion": "1.27"/' appConfig.json - -export ANDROID_HOME=/Users/jenkins/Library/Android/sdk - -npm run build-thread-android -bundle exec fastlane android beta - - - VERSION=SIT_${DownloadName}_$(date +%Y%m%d) -MODIFIED_DATE=$(git log -1 --format="%ci" --) -NAME=HRB_Mobile - -mv android/app/build/outputs/apk/releaseStaging/app-releaseStaging.apk ~/Sites/${NAME}_${VERSION}.apk -scp -i ~/jenkins/jenkins ~/Sites/${NAME}_${VERSION}.apk appuploader@10.57.117.135:~/app/hrb/ + sh jenkins_android_sit.sh ${CODE_PUSH} + + + + + + + HRB_Mobile_SIT_apk_CodePush + ALWAYS + false + false + false + + + -- 2.26.2