public abstract class JobUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static freemarker.template.Configuration |
cfg |
| 构造器和说明 |
|---|
JobUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Result |
createFloder(String foldPath,
String foldName,
String displayName,
String description) |
static Result |
createFreestyleJob(JobInfo jobInfo)
创建自由风格的节点
|
static Result |
createJob(JobInfo jobInfo) |
static Result |
createJob(String foldPath,
String jobName,
String configXML)
创建一个job
|
static Result |
deleteJob(String jobpath)
删除一个job
|
static List<String> |
listJobs(String folderpath)
得到目录下所有job
|
static String |
readJob(String jobpath)
读job的配置信息
|
static Result |
stopBuild(String jobpath)
停止一个流程
|
static Result |
triggerBuild(String jobpath)
启动一个job
|
static Result |
triggerBuild(String flowPath,
String viewName)
触发起动流程
|
public static String readJob(String jobpath)
jobpath - job的路径,如 666671-sharedeploy 则传入666671,sharedeploypublic static Result createJob(String foldPath, String jobName, String configXML)
foldPath - job所在目录jobName - job名字configXML - job配置信息public static Result createFloder(String foldPath, String foldName, String displayName, String description)
public static Result triggerBuild(String flowPath, String viewName)
flowPath - 流程的路径viewName - 流程的viewCopyright © 2016. All rights reserved.