Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-deploy-utils
Commits
37f08d0c
Commit
37f08d0c
authored
Feb 01, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
d74e80e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+3
-3
get_project_config_server.js
qa_shell_script/config_server/get_project_config_server.js
+8
-1
No files found.
qa_shell_script/config_server/get_project_config.js
View file @
37f08d0c
...
...
@@ -96,7 +96,7 @@ var hosts = {
var
pClass
=
function
()
{};
pClass
.
prototype
=
{
init
:
function
(
group
,
isActive
,
projectType
,
port
,
projectName
,
gitPathHead
,
logName
,
configFile
,
command
,
node
Version
,
desc
,
auth
,
command2
,
java_
target_path
)
{
init
:
function
(
group
,
isActive
,
projectType
,
port
,
projectName
,
gitPathHead
,
logName
,
configFile
,
command
,
node
_version
,
desc
,
auth
,
command2
,
target_path
)
{
this
.
project_group
=
group
;
//项目所属组 1: 技术部 2: 数据部
this
.
name
=
projectName
;
//项目名称
this
.
type
=
projectType
;
//项目类型
...
...
@@ -119,12 +119,12 @@ pClass.prototype = {
this
.
command
=
""
;
//项目命令1
this
.
command_
=
""
;
//java项目build过程冲需要的,传参可以不考虑
this
.
command2
=
command2
;
//项目命令2
this
.
node_version
=
node
V
ersion
;
//项目的node版本,JAVA 项目里面,这个是启动命令的前缀……
this
.
node_version
=
node
_v
ersion
;
//项目的node版本,JAVA 项目里面,这个是启动命令的前缀……
this
.
port
=
port
;
//项目占用端口
this
.
desc
=
desc
;
//项目描述
this
.
is_active
=
isActive
;
//项目是否必要项目
this
.
auth
=
auth
;
// 项目负责人
this
.
target_path
=
java_
target_path
;
//项目java打包后的jar文件路径
this
.
target_path
=
target_path
;
//项目java打包后的jar文件路径
projects
[
projectName
]
=
this
;
switch
(
projectType
)
{
case
"
java
"
:
...
...
qa_shell_script/config_server/get_project_config_server.js
View file @
37f08d0c
...
...
@@ -25,7 +25,13 @@ var attrs = {
projectAuth
:
"
auth
"
,
projectDesc
:
"
desc
"
,
logName
:
"
log_name
"
,
jarFilePath
:
"
target_path
"
jarFilePath
:
"
target_path
"
,
auth
:
"
auth
"
,
port
:
"
port
"
,
start_command
:
""
,
stop_command
:
""
command2
:
"
command2
"
node_version
:
"
node_version
"
}
var
attrComs
=
Object
.
keys
(
attrs
)
var
attrComsArr
=
[];
...
...
@@ -125,6 +131,7 @@ admin.get('/get_systems_by_type', function (req, res) {
backend
:
server_str
});
});
// 给jenkins使用根据类型获取系统名称
admin
.
get
(
'
/get_systems_by_type_for_jenkins/:_type
'
,
function
(
req
,
res
)
{
let
str
=
""
...
...
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