Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
34adf676
Commit
34adf676
authored
Mar 18, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脚本工具补充
parent
bcfa10ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
JobUtils.java
...xecutor-plugin/src/main/java/com/byit/utils/JobUtils.java
+27
-0
No files found.
byit-myth-executor/myth-executor-plugin/src/main/java/com/byit/utils/JobUtils.java
View file @
34adf676
...
@@ -317,6 +317,33 @@ public class JobUtils {
...
@@ -317,6 +317,33 @@ public class JobUtils {
}
}
/**
/**
* 立即运行节点
* @param nodeId
* @param nodeName
* @param runCmd
* @param runParam
* @param scriptUrl
* @param runSource
* @param jobType
* @return
*/
public
static
String
realExectNode
(
String
nodeId
,
String
nodeName
,
String
runCmd
,
String
runParam
,
String
scriptUrl
,
String
runSource
,
String
jobType
){
log
.
info
(
"---------------立即运行节点---------------------"
);
HashMap
map
=
new
HashMap
(
10
);
map
.
put
(
"nodeId"
,
nodeId
);
map
.
put
(
"nodeName"
,
nodeName
);
map
.
put
(
"runCmd"
,
runCmd
);
map
.
put
(
"runParam"
,
runParam
);
map
.
put
(
"scriptUrl"
,
scriptUrl
);
map
.
put
(
"runSource"
,
runSource
);
map
.
put
(
"jobType"
,
jobType
);
//立即运行节点
String
addRequestResult
=
createHttpRequest
(
REQUEST_WORKSPACE_ADD
,
"param="
+
JSON
.
toJSONString
(
map
));
log
.
info
(
"--------------------立即运行节点,结果为:{}------------------------"
,
addRequestResult
);
return
addRequestResult
;
}
/**
* 判断当前的运行环境是什么 jar : table of Contents(目录)
* 判断当前的运行环境是什么 jar : table of Contents(目录)
* @return jar -->true 目录 -->false
* @return jar -->true 目录 -->false
*/
*/
...
...
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