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

20180082: Job [Deploy_Hi365_Android_SIT] configuration updated

Change performed by ³¯¾_¶§
parent 3bc04cd1
...@@ -15,14 +15,6 @@ ...@@ -15,14 +15,6 @@
<permission>hudson.model.Item.Read:longmengua</permission> <permission>hudson.model.Item.Read:longmengua</permission>
<permission>hudson.model.Item.Workspace:longmengua</permission> <permission>hudson.model.Item.Workspace:longmengua</permission>
</hudson.security.AuthorizationMatrixProperty> </hudson.security.AuthorizationMatrixProperty>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>5</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13"> <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>
...@@ -36,6 +28,14 @@ ...@@ -36,6 +28,14 @@
</hudson.model.StringParameterDefinition> </hudson.model.StringParameterDefinition>
</parameterDefinitions> </parameterDefinitions>
</hudson.model.ParametersDefinitionProperty> </hudson.model.ParametersDefinitionProperty>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>5</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
</properties> </properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0"> <scm class="hudson.plugins.git.GitSCM" plugin="git@4.0.0">
<configVersion>2</configVersion> <configVersion>2</configVersion>
...@@ -73,10 +73,6 @@ git_short_hash=$(git rev-parse --short HEAD) ...@@ -73,10 +73,6 @@ git_short_hash=$(git rev-parse --short HEAD)
version_number=$Version_Number version_number=$Version_Number
# determine build type
build_type=&quot;debug&quot;
default_doc=&quot;main_sit.dart&quot;
output_path=&quot;${project_path}/build/app/outputs/apk/${build_type}&quot; output_path=&quot;${project_path}/build/app/outputs/apk/${build_type}&quot;
new_apk_name=&quot;Hi365_SIT_${current_date}_${version_number}_${git_short_hash}.apk&quot; new_apk_name=&quot;Hi365_SIT_${current_date}_${version_number}_${git_short_hash}.apk&quot;
...@@ -84,7 +80,7 @@ new_apk_name=&quot;Hi365_SIT_${current_date}_${version_number}_${git_short_hash} ...@@ -84,7 +80,7 @@ new_apk_name=&quot;Hi365_SIT_${current_date}_${version_number}_${git_short_hash}
apk_path=&quot;${output_path}/${new_apk_name}&quot; apk_path=&quot;${output_path}/${new_apk_name}&quot;
# build command # build command
flutter build apk --${build_type} -t lib/${default_doc} flutter build apk --debug -t lib/main_sit.dart
# rename apk name # rename apk name
mv ${output_path}/app-${build_type}.apk ${apk_path} mv ${output_path}/app-${build_type}.apk ${apk_path}
......
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