From 1ee03097c3df877f26c2f584cd26fd70013042af Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 21 Nov 2019 14:18:06 +0800 Subject: [PATCH] 20180082: Job [Deploy_Hi365_Android_PROD] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¯¾_¶§ --- jobs/Deploy_Hi365_Android_PROD/config.xml | 132 ++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 jobs/Deploy_Hi365_Android_PROD/config.xml diff --git a/jobs/Deploy_Hi365_Android_PROD/config.xml b/jobs/Deploy_Hi365_Android_PROD/config.xml new file mode 100644 index 00000000..2e2a65df --- /dev/null +++ b/jobs/Deploy_Hi365_Android_PROD/config.xml @@ -0,0 +1,132 @@ + + + + Hi365 APK Packager + false + + + + com.cloudbees.plugins.credentials.CredentialsProvider.View:longmengua + hudson.model.Item.Build:longmengua + hudson.model.Item.Cancel:longmengua + hudson.model.Item.Configure:longmengua + hudson.model.Item.Discover:longmengua + hudson.model.Item.Gitflow:longmengua + hudson.model.Item.Read:longmengua + hudson.model.Item.Workspace:longmengua + + + ylhealth + + + + + Version_Number + + 0.0.0 + false + + + + + + -1 + 5 + -1 + -1 + + + + + 2 + + + https://cm.ylhealth.org/gitlab/YongYue/hi365-app.git + 3485e854-8389-40e8-8c86-b94e94e91904 + + + + + develop + + + false + + + + Mac_Node1 + false + false + false + false + + false + + + project_path=$(pwd) + +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/${build_type}" + +new_apk_name="Hi365_SIT_${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 + +# rename apk name +mv ${output_path}/app-${build_type}.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} + + + + + + + + + + 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 + + + false + + + \ No newline at end of file -- 2.26.2