public class Job extends BaseModel
| Constructor and Description |
|---|
Job() |
Job(String name,
String url) |
Job(String name,
String url,
String fullName) |
| Modifier and Type | Method and Description |
|---|---|
QueueReference |
build()
Trigger a build without parameters
|
QueueReference |
build(boolean crumbFlag)
Trigger a build with crumbFlag.
|
QueueReference |
build(Map<String,String> params)
Trigger a parameterized build with string parameters only
|
QueueReference |
build(Map<String,String> params,
boolean crumbFlag)
Trigger a parameterized build with string parameters only
|
QueueReference |
build(Map<String,String> params,
Map<String,File> fileParams)
Trigger a parameterized build with file parameters
|
QueueReference |
build(Map<String,String> params,
Map<String,File> fileParams,
boolean crumbFlag)
Trigger a parameterized build with file parameters and crumbFlag
|
JobWithDetails |
details() |
boolean |
equals(Object o) |
String |
getFileFromWorkspace(String fileName)
Get a file from workspace.
|
String |
getFullName() |
String |
getName() |
String |
getUrl() |
int |
hashCode() |
public String getName()
public String getUrl()
public String getFullName()
public JobWithDetails details() throws IOException
IOExceptionpublic String getFileFromWorkspace(String fileName) throws IOException
fileName - The name of the file to download from workspace. You can
also access files which are in sub folders of the workspace.IOException - in case of an error.public QueueReference build() throws IOException
QueueReference for further analysis of the queued build.IOException - in case of an error.public QueueReference build(boolean crumbFlag) throws IOException
crumbFlag - true or false.QueueReference for further analysis of the queued build.IOException - in case of an error.public QueueReference build(Map<String,String> params) throws IOException
params - the job parametersQueueReference for further analysis of the queued build.IOException - in case of an error.public QueueReference build(Map<String,String> params, boolean crumbFlag) throws IOException
params - the job parameterscrumbFlag - true or false.QueueReference for further analysis of the queued build.IOException - in case of an error.public QueueReference build(Map<String,String> params, Map<String,File> fileParams) throws IOException
params - the job parametersfileParams - the job file parametersQueueReference for further analysis of the queued build.IOException - in case of an error.public QueueReference build(Map<String,String> params, Map<String,File> fileParams, boolean crumbFlag) throws IOException
params - the job parametersfileParams - the job file parameterscrumbFlag - determines whether crumb flag is usedQueueReference for further analysis of the queued build.IOException - in case of an error.Copyright © 2018. All rights reserved.