Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
eff71c8d
Commit
eff71c8d
authored
Sep 20, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
52a6dbf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
script/gponline.py
+9
-0
script/refresh_gponline.sh
+58
-0
No files found.
script/gponline.py
0 → 100755
View file @
eff71c8d
import
requests
import
time
import
datetime
import
sys
seconds
=
int
(
time
.
time
())
paramMap
=
{
'corpid'
:
sys
.
argv
[
1
],
'level'
:
sys
.
argv
[
2
],
'developer'
:
sys
.
argv
[
3
],
'pkg_name'
:
sys
.
argv
[
4
],
'action'
:
sys
.
argv
[
5
],
'update_time'
:
seconds
}
result
=
requests
.
get
(
"http://34.92.238.50:5021/refreshGPInfo"
,
params
=
paramMap
)
print
(
result
.
json
())
script/refresh_gponline.sh
0 → 100755
View file @
eff71c8d
.
../../gradle.properties
developer
=
"sikang"
cus_crop_id
=
$1
if
((
${#
cus_crop_id
}
==
0
))
then
cus_crop_id
=
"
${
corp_id_majia
}
"
fi
if
((
${#
cus_crop_id
}
==
0
))
then
cus_crop_id
=
"
${
corp_id
}
"
fi
echo
"1、commit + push + push_tag + 自动发包登记 (需要配置分支)"
echo
"2、自动记录发包(读取包名)"
echo
"3、手动记录发包(手动指定包名)"
echo
" "
echo
-n
"请输入指令编号:"
read
commod
echo
-n
"此次上架方案:"
read
action
chmod a+x gponline.py
if
((
$commod
==
'1'
))
then
cd
../../
git add
.
git commit
-m
"
${
app_id
}
${
version_name
}
"
git push origin
${
git_branch
}
tagName
=
t
${
corp_id
}
-
${
app_id
}
git tag
-d
${
tagName
}
git push origin
--delete
tag
${
tagName
}
git tag
-a
${
tagName
}
-m
${
tagName
}
git push origin
${
tagName
}
cd
lib_base/script
python gponline.py
"
${
cus_crop_id
}
"
"
${
level
}
"
"
${
developer
}
"
"
${
app_id
}
"
"
${
action
}
"
elif
((
$commod
==
'2'
))
then
python gponline.py
"
${
cus_crop_id
}
"
"
${
level
}
"
"
${
developer
}
"
"
${
app_id
}
"
"
${
action
}
"
elif
((
$commod
==
'3'
))
then
echo
-n
"输入要指定的包名:"
read
pkgname
python gponline.py
"
${
cus_crop_id
}
"
"
${
level
}
"
"
${
developer
}
"
"
${
pkgname
}
"
"
${
action
}
"
else
echo
"找不到编号"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment