Commit 37f08d0c authored by tywldx's avatar tywldx

temp

parent d74e80e9
......@@ -96,7 +96,7 @@ var hosts = {
var pClass = function() {};
pClass.prototype = {
init: function(group, isActive, projectType, port, projectName, gitPathHead, logName, configFile, command, nodeVersion, 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 = nodeVersion; //项目的node版本,JAVA 项目里面,这个是启动命令的前缀……
this.node_version = node_version; //项目的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":
......
......@@ -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 = ""
......
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