Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
16e6caf7
Commit
16e6caf7
authored
Mar 14, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
b1fc60f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
install_api.py
app/install/install_api.py
+3
-1
install_service.py
app/install/install_service.py
+2
-2
No files found.
app/install/install_api.py
View file @
16e6caf7
# -*- coding:utf-8 -*-
from
flask
import
request
from
huansi_utils.webapi
import
ApiController
from
app
import
api
...
...
@@ -21,7 +22,8 @@ class InstallAPI(ApiController):
安装runner1
:return:
'''
return
InstallService
()
.
install_huansi_runner_step1
()
s
=
request
.
args
.
get
(
'time'
)
return
InstallService
()
.
install_huansi_runner_step1
(
s
)
@
api
(
'runner/step2'
)
def
get_install_runner_step2
(
self
):
...
...
app/install/install_service.py
View file @
16e6caf7
...
...
@@ -41,14 +41,14 @@ class InstallService(HSBaseUCService):
self
.
start_runner
()
return
{
"message"
:
"安装runner成功"
}
def
install_huansi_runner_step1
(
self
):
def
install_huansi_runner_step1
(
self
,
s
):
'''
安装runner第一步
:param HSCUSCODE:
:return:
'''
# 测试下载时间
time
.
sleep
(
120
)
time
.
sleep
(
int
(
s
)
)
return
{
"message"
:
"runner注册成功"
,
"step"
:
"1"
,
"status"
:
"running"
,
"later_message"
:
"正在修改runner配置..."
}
conncetion_service
=
ConnectionService
()
project_info
=
conncetion_service
.
get_project_info
()
...
...
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