diff --git a/jobs/Deploy_Hi365_Android_PROD/config.xml b/jobs/Deploy_Hi365_Android_PROD/config.xml index 2e2a65df1c6db0937c496e1ff8f87f0bb90a3f64..0928356d085143ab776800a231b3688e74a97c46 100644 --- a/jobs/Deploy_Hi365_Android_PROD/config.xml +++ b/jobs/Deploy_Hi365_Android_PROD/config.xml @@ -1,7 +1,7 @@ - Hi365 APK Packager + Hi365 Prod APK Packager false @@ -47,7 +47,7 @@ - develop + master false @@ -65,62 +65,31 @@ project_path=$(pwd) -app_version=$(grep 'version:' ${project_path}/pubspec.yaml | cut -d ' ' -f2) +# app_version=$(grep 'version:' ${project_path}/pubspec.yaml | cut -d ' ' -f2) current_date=$(date +"%Y%m%d") git_short_hash=$(git rev-parse --short HEAD) -version_number=$Version_Number +output_path="${project_path}/build/app/outputs/apk/release" -output_path="${project_path}/build/app/outputs/apk/${build_type}" - -new_apk_name="Hi365_SIT_${current_date}_${version_number}_${git_short_hash}.apk" +new_apk_name="Hi365_Release_${current_date}_$Version_Number_${git_short_hash}.apk" apk_path="${output_path}/${new_apk_name}" # build command -flutter build apk --debug -t lib/main_sit.dart +flutter build apk --release -t lib/main_prod.dart # rename apk name -mv ${output_path}/app-${build_type}.apk ${apk_path} +mv ${output_path}/app-release.apk ${apk_path} # deploy -echo "Deploy to APK repository" -scp -i ~/jenkins/jenkins ${apk_path} appuploader@10.57.117.135:~/app/Hi365/${new_apk_name} +echo "TODO...Deploy to APK repository" +# scp -i ~/jenkins/jenkins ${apk_path} appuploader@10.57.117.135:~/app/Hi365/${new_apk_name} - - - - - - - NotifyMessage=Deploy Hi365 Android done on SIT. - false - - - Notify_Group - SUCCESS - false - false - - - - - NotifyMessage=Deploy Hi365 Android on SIT fail. Please check it. - false - - - Notify_Group - UNSTABLE_OR_WORSE - false - false - - - - + false